Populate value in text field.

T

TyF

Need an account # to populate in the text field if inventory# field is empty.

IIf(Is Null([Inventory #])=[Debit Account])) or do I need to use Nz instead
of Is Null??
 
T

TyF

I placed the expression in the query, getting no results...

Jerry Whittle said:
IIf(IsNull([Inventory #]) = True, [Debit Account], [Inventory #])
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

TyF said:
Need an account # to populate in the text field if inventory# field is empty.

IIf(Is Null([Inventory #])=[Debit Account])) or do I need to use Nz instead
of Is Null??
 
T

TyF

It works... Thanks very much...

Jerry Whittle said:
IIf(IsNull([Inventory #]) = True, [Debit Account], [Inventory #])
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

TyF said:
Need an account # to populate in the text field if inventory# field is empty.

IIf(Is Null([Inventory #])=[Debit Account])) or do I need to use Nz instead
of Is Null??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top