How can I hide '#Error' in Text Field after DLookup?
Hi there,
I've been struggeling with this problem for hours now and I'm sure there is an easy fix. Searched the forum to no avail
I've got a form with a subform in which combo-boxes are used to add staff to projects. Then, their Role is selected via a second combo-box. I display that role via a DBlookup query in a text field. This has to be done that way to keep the value, as I use a requery for the second combo box for every row.
Now this works well, but the ugly thing is that the DBLookup function always displays "#Error" in the text field, until something has been selected.
I've tried to use conditional formatting for the text box, to set the text colour to white, if the value = "#Error", but Access just tells me "The expression you entered has an invalid date value"
Does anyone have any leads on how to hide this error?
Thanks in advance!
Hi there,
I've been struggeling with this problem for hours now and I'm sure there is an easy fix. Searched the forum to no avail

I've got a form with a subform in which combo-boxes are used to add staff to projects. Then, their Role is selected via a second combo-box. I display that role via a DBlookup query in a text field. This has to be done that way to keep the value, as I use a requery for the second combo box for every row.
Now this works well, but the ugly thing is that the DBLookup function always displays "#Error" in the text field, until something has been selected.
I've tried to use conditional formatting for the text box, to set the text colour to white, if the value = "#Error", but Access just tells me "The expression you entered has an invalid date value"

Does anyone have any leads on how to hide this error?
Thanks in advance!

Last edited: