A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Populate value in text field.



 
 
Thread Tools Display Modes
  #1  
Old July 2nd, 2009, 02:55 PM posted to microsoft.public.access
TyF
external usenet poster
 
Posts: 24
Default Populate value in text field.

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??

  #2  
Old July 2nd, 2009, 03:03 PM posted to microsoft.public.access
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Populate value in text field.

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

"TyF" wrote:

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??

  #3  
Old July 2nd, 2009, 03:19 PM posted to microsoft.public.access
TyF
external usenet poster
 
Posts: 24
Default Populate value in text field.

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

"Jerry Whittle" wrote:

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

"TyF" wrote:

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??

  #4  
Old July 2nd, 2009, 03:34 PM posted to microsoft.public.access
TyF
external usenet poster
 
Posts: 24
Default Populate value in text field.

It works... Thanks very much...

"Jerry Whittle" wrote:

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

"TyF" wrote:

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??

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.