H
Hugh self taught
Hi Brainy people,
My mind is spinning because I can't see the fault.
On my form is an unbound text box with =[EvtCplID].[Column](0) which
reflects the correct value.
I have a save button & need to save the reflected value in the bound tables
field EvtMale. I can't seem to get the syntax to set the field value = to the
reflected value before the save.
I then set about doing an update after the save (which I've done in other
databases before but in slightly more simple circumstances) & get an "Object
Required" error. The VB command is thus
DoCmd.RunSQL ("UPDATE tblEvtInput SET EvtMale =" & Couples.MaleID & " WHERE
Couples.CoupleID =" & [Forms]![frmEvtInput]![EvtMale])
I had it in concatenated format & had a syntax error there so in haste I
just made it one long line to test with. The fields names are correct & the
form name is correct. The cbo above gets it's data from the Couples table.
Any suggestions may save what little hair I have left...
My mind is spinning because I can't see the fault.
On my form is an unbound text box with =[EvtCplID].[Column](0) which
reflects the correct value.
I have a save button & need to save the reflected value in the bound tables
field EvtMale. I can't seem to get the syntax to set the field value = to the
reflected value before the save.
I then set about doing an update after the save (which I've done in other
databases before but in slightly more simple circumstances) & get an "Object
Required" error. The VB command is thus
DoCmd.RunSQL ("UPDATE tblEvtInput SET EvtMale =" & Couples.MaleID & " WHERE
Couples.CoupleID =" & [Forms]![frmEvtInput]![EvtMale])
I had it in concatenated format & had a syntax error there so in haste I
just made it one long line to test with. The fields names are correct & the
form name is correct. The cbo above gets it's data from the Couples table.
Any suggestions may save what little hair I have left...