SteveL13
asked on
Trying to write values from a listbox to an unbound table
I'm trying to write values from a listbox to an unbound table.
My code isn't working.
Here it is:
Dim RS As DAO.Recordset
Set RS = CurrentDb.OpenRecordset("t blReady")
RS.AddNew
RS!Bay = Forms!frmPlanted.ListBayQt y.Bay
RS!ReadyQty = Forms!frmPlanted.ListBayQt y.ReadyQty
RS.Update
????
My code isn't working.
Here it is:
Dim RS As DAO.Recordset
Set RS = CurrentDb.OpenRecordset("t
RS.AddNew
RS!Bay = Forms!frmPlanted.ListBayQt
RS!ReadyQty = Forms!frmPlanted.ListBayQt
RS.Update
????
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I mean, ...there is a way to do this as you ask, ...
But if you state your ultimate goal, we may be able to provide a more efficient method...
For example, it should be far easier to insert the listbox "source" to a table.
But again, if the listbox source is already a table/query, ...what is the need to export it to another table?
JeffCoachman