Hi all, txthours is a textbox on my form, but i can't get the dlookup syntax to work... theres a syntax problem i think in the line of code? I get the values for aserial and ahour from a query.. this works ok. any ideas?? thanks
Dim ahour As String
Dim acomment As String
Dim aserial As String
acomment = DLookup("comment", "partfind")
aserial = DLookup("serial", "partfind")
ahour = DLookup("hour", "partfind")
txthours = DLookup("['" & ahour & "']", "RECORDS", "['" & aserial & "']='" & Me.Serialbox & "'")
Dim ahour As String
Dim acomment As String
Dim aserial As String
acomment = DLookup("comment", "partfind")
aserial = DLookup("serial", "partfind")
ahour = DLookup("hour", "partfind")
txthours = DLookup("['" & ahour & "']", "RECORDS", "['" & aserial & "']='" & Me.Serialbox & "'")