K
Kicker
Guest
Have been reading a lot of posts about this subject, but nothing seems to work....
To make things simple, I am just trying to get it to work before going any further and making it complex.
Table name: Officers
Field wanted: BadgeNum
Field Have: LName
Table is sorted on LName in Ascending order
The form has a textbox named LName and it is linked to the Officers table LName field.
dim testVal as string
testVal = DLookup("[BadgeNum]", "Officers", "[LName] = " & Me.LName.Value)
When I select debug and place the cursor on the "me.LName.value" section, the proper name appears so I know it is initialized properly.
(I did a cut and paste to get the above code here because I didn't want to make a typing mistake....
When run, it gives me the error...."The object doesn't contain the Automation Object "McCain."
I need a drink.....
I forgot...I do not have any relational items setup yet. so there is no referential integrity
ttfn
Kicker
To make things simple, I am just trying to get it to work before going any further and making it complex.
Table name: Officers
Field wanted: BadgeNum
Field Have: LName
Table is sorted on LName in Ascending order
The form has a textbox named LName and it is linked to the Officers table LName field.
dim testVal as string
testVal = DLookup("[BadgeNum]", "Officers", "[LName] = " & Me.LName.Value)
When I select debug and place the cursor on the "me.LName.value" section, the proper name appears so I know it is initialized properly.
(I did a cut and paste to get the above code here because I didn't want to make a typing mistake....
When run, it gives me the error...."The object doesn't contain the Automation Object "McCain."
I need a drink.....
I forgot...I do not have any relational items setup yet. so there is no referential integrity
ttfn
Kicker
Last edited: