I have many text and combo boxes on my form. But for the purposes of this question I am only referring to three.
Text1 = Asset_Number
Text2 = Site_Ref
Text3 = Location
Text 2 and Text 3 contain relevant information in a table called 'tbl_locations'
OK, based on an After_Update event of Text1, a bit of code pulls Left (Me.Asset_Number, 2) as a string and places the result in Text2.
What I want to happen after it has placed the value in Text2 is that the two figure ref will be looked up in the tbl_locations table and then whatever the Location is that has that two digit code will be placed in Text3.
Anybody got any little gems of info that can help in this situation?
Text1 = Asset_Number
Text2 = Site_Ref
Text3 = Location
Text 2 and Text 3 contain relevant information in a table called 'tbl_locations'
OK, based on an After_Update event of Text1, a bit of code pulls Left (Me.Asset_Number, 2) as a string and places the result in Text2.
What I want to happen after it has placed the value in Text2 is that the two figure ref will be looked up in the tbl_locations table and then whatever the Location is that has that two digit code will be placed in Text3.
Anybody got any little gems of info that can help in this situation?