Hi,
Im trying to update a row on my database using input from text fields. Ive managed to get the values into variables, but when I try and update the row it either doesnt do what im expecting or has comile errors.
The code is....
'create a recordset variable (array)
Dim unitsdata As Recordset
'set that array to be a row in the database
Set unitsdata = CurrentDb.OpenRecordset("Booking")
'add a new row to the database
unitsdata.AddNew
'populate the array with values
unitsdata!JobNumber = DataValue1 And ActivityCd = DataValue3 And BookingDate = DataValue4 And JobDescription = DataValue6 And HangerId = DataValue7 And ShopId = DataValue8
'update the row in question
unitsdata.Update
I had it working last night with one value but I need the whole row updated!
Can anyone help please?
