I have a Clear button on my form, this button clears the data from the comboboxes and refreshes the form so the textboxes show 0. here's the code in the button:
Me.cboOrigin = ""
Me.cboPOL = ""
Me.cboTS1 = ""
Me.cboTS2 = ""
Me.cboTS3 = ""
Me.cboPOD = ""
Me.cboDest = ""
Me.cboPOLMT = ""
Me.cboTSMT = ""
Me.cboPODMT = ""
Refresh
the button worked fine when my tables where in an access back-end, but after migrating my access tables to sql server (express 2017) after clicking the Clear button the textboxes show #Error. but when selecting data in the comboboxes the textboxes will show the correct values, its only after hitting the Clear button.
dont understandr why. any ideas?
expession in the textboxes:
=Nz(DLookUp("Column","Query"),0)
tks