Link to home
Create AccountLog in
Microsoft Access

Microsoft Access

--

Questions

--

Followers

Top Experts

Avatar of Fritz Paul
Fritz PaulπŸ‡ΏπŸ‡¦

Access query does not display records with empty fields - Can you help please
I have a query that gets its criteria values from a form.
I have cleared the form so there are no filters/constraints. That means Combo405 and Combo406 "below" are empty (set equal to "").
However when any field in the table is empty, that record does not show up in the query.
For instance i have two records with the same [Property] value, but one does not have a value in the [Owner] field. Then my query only displays the record that has a property value and a Owner value in the underlying table.

My query looks like below.


User generated image

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Mike EghtebasMike EghtebasπŸ‡ΊπŸ‡Έ

use NZ(MyField) for those fields

TheOwner: Nz( [Owner]) Β  Β  '<-- this inserts empty string for the missing owners.

or

TheOwner: Nz( [Owner],"tbd")

Avatar of Fritz PaulFritz PaulπŸ‡ΏπŸ‡¦

ASKER

Hi,

My database design view now looks like below. The query now includes even those records without values. Thanks.

But now the query is not updatable anymore, because I changed all the names adding an X after the name. If I keep the query field names the same I get a circular reference error.

Is there a way that I can still keep the query updatable?

Please what do you mean by the "tbd"?

User generated image

ASKER CERTIFIED SOLUTION
Avatar of Mike EghtebasMike EghtebasπŸ‡ΊπŸ‡Έ

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Fritz PaulFritz PaulπŸ‡ΏπŸ‡¦

ASKER

Thanks a lot.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Microsoft Access

Microsoft Access

--

Questions

--

Followers

Top Experts

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.