I hope your English is better than my Italian, lebroki, check if I have
understood this correctly.
You want to press a button and have the text in textbox Testo65 inserted
into the field CodFisc in TBLCLIENTI where it will become the Primary Key
field of that table
Question: E la CodFisc campo, testo o nomero?
Se testo, use this in the On Click Event of the Button
DoCmd.RunSQL ("INSERT INTO TblClienti (CodFisc) VALUES (""" & Me.Testo65 &
""")")
That is 3 Quotation marks (contrassegni di citazione) (") before the '&'
3 after the &
1 Quotation mark after the bracket )
Se CodFisc e nomero:
DoCmd.RunSQL ("INSERT INTO TblClienti (CodFisc) VALUES (" & Me.Testo65 &
")")
Evi
> anagrafici dei miei clienti e in una casella di testo (Testo65)
> mi viene generato il codice fiscale.
> Questo codice fiscale dovrebbe diventare
> la chiave primaria della tabella confluendo in
> nel campo CodFisc.
> Ho provato in diversi modi ma non sono riuscito
> nel mio intento.
>
> su evento After
> su evento Before
In the Before Event
the After Event
> ho inserito
> I inserted
[quoted text clipped - 16 lines]
>
> Grazie