ok risolto !!!
Il codice funziona così
_________________________________________
Private Sub Comando0_Click()
On Error GoTo Err_Comando0_Click
'===============================
Dim db As Database
Dim tdfPippo As TableDef
Set db = CurrentDb
Set tdfPippo = db.TableDefs!Fatture ' nome tabella =Fatture
' Store original DefaultValue information and set the
' property to a new value.
Debug.Print tdfPippo.Fields!Perc_spesestudio.DefaultValue '
Perc_spesestudio
tdfPippo.Fields!Perc_spesestudio.DefaultValue =
Forms![PRIMA]!campomodifica.Value
'===============================
Exit_Comando0_Click:
Exit Sub
Err_Comando0_Click:
MsgBox Err.Description
Resume Exit_Comando0_Click
End Sub
________________________________________________________________________
Ultima domanda:
nel codice che mi hai consigliato c'è due voltea la seguente riga:
Debug.Print tdfPippo.Fields!Perc_spesestudio.DefaultValue '
Perc_spesestudio
(io avrei omesso la seconda in ultima riga)
è giusto che ci sia ???
Saluti
Lucky
"pfmarro" <
pfm...@gmail.com> ha scritto nel messaggio
news:544079b4-bf4d-4f1e...@googlegroups.com...