Hello and thank you for any attention my post may receive.
On my userform I have three fields – cboUID, txtComm andtxtID.
txtComm is not visible because it is purely a ‘helper’field.
txtID is not visible because it is also a helper field thatis used to open another form to the correct record.
I select a number in cboUID, txtComm populates with thecorrect date value, however txtID returns #Error…..and I have no idea why!
Any advice would be greatly appreciated!
On my userform I have three fields – cboUID, txtComm andtxtID.
- cboUID - number field.
- txtComm - date field with Control Source ‘=DateValue(DMin("[Date_Commissioned]","qryUnit","[Unit]=" & [cboUID]))’.
- txtID – Control Source is ‘=CSng(DLookUp("ID","tblUnit","[Unit]=" & [cboUID] & " And [Date_Commissioned]=#" & [txtComm] & "#"))’.
txtComm is not visible because it is purely a ‘helper’field.
txtID is not visible because it is also a helper field thatis used to open another form to the correct record.
I select a number in cboUID, txtComm populates with thecorrect date value, however txtID returns #Error…..and I have no idea why!
Any advice would be greatly appreciated!