T
The Catworks Cat
In my database ( Which is used for inventory and work orders etc.. ) I have a
form that the employees use to check out parts ( form name "WOCheckOut" )
which puts the checked out items into table "Work Order Check Out". I have
the main Inventory table ( Table name "TblAcq" ) that has part numbers and
descriptions etc that is added to as inventory comes in. What I am trying to
do is when an Employee checks out a part ( by part number ) a description in
the form auto fills out using the description from the TblsAcq table. On
the form in "Part Number" on after update I have this code:
Private Sub Part_Number_AfterUpdate()
Dim strSearch As String, varX As Variant
strSearch = Me!Part_Number
varX = DLookup("[Part_Description]", "TblAcq", "[Part Number] = '" &
strSearch & "'")
Me!Part_Description.Value = varX
End Sub
And when run I get a 2465 Run time error " Can't find field "Part_Number"
Error
I saw where this can happen if the form isn't bound to the table?
Any help??
Thanks!!! Trying to learn this program as best and fast as I can!
Cat
form that the employees use to check out parts ( form name "WOCheckOut" )
which puts the checked out items into table "Work Order Check Out". I have
the main Inventory table ( Table name "TblAcq" ) that has part numbers and
descriptions etc that is added to as inventory comes in. What I am trying to
do is when an Employee checks out a part ( by part number ) a description in
the form auto fills out using the description from the TblsAcq table. On
the form in "Part Number" on after update I have this code:
Private Sub Part_Number_AfterUpdate()
Dim strSearch As String, varX As Variant
strSearch = Me!Part_Number
varX = DLookup("[Part_Description]", "TblAcq", "[Part Number] = '" &
strSearch & "'")
Me!Part_Description.Value = varX
End Sub
And when run I get a 2465 Run time error " Can't find field "Part_Number"
Error
I saw where this can happen if the form isn't bound to the table?
Any help??
Thanks!!! Trying to learn this program as best and fast as I can!
Cat