When useing tbl.addnew / tbl.update and you have an autonumber field, how do you give it a value?
For example tbl is the table and it has three fields (fldA, fldB, fldC) FldA is an autonumber field. The code looks like:
tbl.addnew
tbl!fldB = Forms!frmX!txtX
tbl!fldC = Forms!frmY!txtY
tbl.update
When you do an addnew shouldn't it automatically assign the next value to fldA? I'm guessing not because I'm getting an error... so what should tbl!fldA = ?
Thanks
For example tbl is the table and it has three fields (fldA, fldB, fldC) FldA is an autonumber field. The code looks like:
tbl.addnew
tbl!fldB = Forms!frmX!txtX
tbl!fldC = Forms!frmY!txtY
tbl.update
When you do an addnew shouldn't it automatically assign the next value to fldA? I'm guessing not because I'm getting an error... so what should tbl!fldA = ?
Thanks