Question Forms (1 Viewer)

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 07:29
Joined
May 7, 2009
Messages
19,246
See the code relink the tables
 

Attachments

  • handheld.zip
    165.9 KB · Views: 35

Russell08

Registered User.
Local time
Today, 00:29
Joined
Feb 21, 2018
Messages
13
Arnel,

Thanks you so much!
I think we are nearly there! or rather you are.

The only problem I have now is the Serial number is contained within two textbox's.OWNER and NWQIS.

OWNER is TEXT and NWQIS is NUMERICAL.
Only NWQIS is showing in the new Textbox MeterSerial).
How do I get the first part (OWNER) to show up as well?

Russell
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 07:29
Joined
May 7, 2009
Messages
19,246
first delete all data from the meterserial field, so
we can insert the fresh meterserial:

currentdb.execute "update [calibration shee] set meterserial=null"


next open your calibration form on Design view and change
End_User_Name_AfterUpdate() Event.

change this:

meterSerial = DLookup("[NWQIS]", "[CALIBRATION SHEET]", "[END USER NAME]='" & Me![END USER NAME] & "' and [DEPLOYMENT DATE] = #" & Format(dt, "mm/dd/yyyy") & "#")


to:


meterSerial = DLookup("[OWNER] & (' ' + [NWQIS])", "[CALIBRATION SHEET]", "[END USER NAME]='" & Me![END USER NAME] & "' and [DEPLOYMENT DATE] = #" & Format(dt, "mm/dd/yyyy") & "#")
 

Russell08

Registered User.
Local time
Today, 00:29
Joined
Feb 21, 2018
Messages
13
Arnel,
It works perfectly!
Thank so much for your help and patience.
You my friend are a Star!!!
 

Users who are viewing this thread

Top Bottom