A family of Microsoft relational database management systems designed for ease of use.
Hi Army, I will try to help.
What is the purpose of this form? Is there code behind the form? If so, what is it? What is the Controlsource of the control bound to the PRT field? Where are you using the NZ() function?
It looks like you are trying to populate the the PRT# based on a value entered into a control on the Main Menu form. based on that, I do have some suggestions.
- Use a combobox on the Main Menu to select from the valid values. In that way the query will always return a PRT# and never be Null. Thus avoiding the problem.
- Use code like this:
If DCount("*","queryname") = 0 Then
Me.controlname = "N/A"
Else
Me.controlname = DLookup("[PRT#]","queryname")
End If
If you need further clarification for this feel free to ask.