Hello All,
I have been 'upgraded' to Access 2010. In my Db I have a form "FrmSent" bound to a table "TblSent". The table has an autonumber as the PK called "ID". I open the form on the click of a button from another form, and at a new record using
Code:
DoCmd.GoToRecord acDataForm, "FrmSent", acNewRec
in the 'On Load' property of FrmSent.
I need the "ID" box to automatically populate with the new record ID number, but will it? No, it will not! Thus when I close the form, I get the usual 'cannot contain a null value message'. I have messed around with the form, set 'Data Entry' pro[erty to yes, deleted it, rebuilt it....can't get it to work!
Can anyone throw any light as to what I am doing wrong?
Many thanks,
Mattbro