Ok my problem is that this one form is resisting. The dlookup code im using is being a dick and not allowing me to continue. This code is pretty basic:
The table, is called merchandise and it is fully populated, and all spelling is correct. The form is the same. HOWEVER, I continue to recieve the error.
I've used this same code structure in another form:
This however works???
If you can tell me where I went wrong please do soon!
PLEASE HELP ME!
Code:
Private Sub Itemid_AfterUpdate()
Itemid = DLookup("Itemid", "Merchandise", "Itemid=" & Itemid)
Itemname = DLookup("Itemname", "Merchandise", "Itemid=" & Itemid)
Itemdescription = DLookup("Itemdescription", "Merchandise", "Itemid=" & Itemid)
Itemtype = DLookup("Itemtype", "Merchandise", "Itemid=" & Itemid)
Itemsell = DLookup("Itemsellprice", "Merchandise", "Itemid=" & Itemid)
Stock = DLookup("Stock", "Merchandise", "Itemid=" & Itemid)
End Sub
I've used this same code structure in another form:
Code:
Private Sub Clientid_AfterUpdate()
Clientname = DLookup("Clientname", "Client Data", "Clientid=" & Clientid)
Clientuser = DLookup("Username", "Client Data", "Clientid=" & Clientid)
Clientpass = DLookup("Userpassword", "Client Data", "Clientid=" & Clientid)
Clientemail = DLookup("Email", "Client Data", "Clientid=" & Clientid)
End Sub
If you can tell me where I went wrong please do soon!
PLEASE HELP ME!