"NULL"

  • Thread starter Tom magee via AccessMonster.com
  • Start date
T

Tom magee via AccessMonster.com

We get a file from a 3rd party where a field is populated with an invoice
reference number or <Null>.

I have one table where I have both credit-memos and invoice details.

The field where the Null appears (relating to a credit memo) refers to an
invoice number

The invoice records have <Null> because the invoice number is held in
"Invoice Number"

I want to have the null replaced with the contents of another field...like
an IF statement I guess.

Can anyone help?




Tom



What am i upto ? Matching invoice numbers and credit memos.
 
G

George Nicholson

Create an update query. Add your "Apply-To" field. Under "UpdateTo":
=NZ([Apply-To],[Apply-To],[InvoiceNumber])

Translation: If Apply-To is Null, use InvoiceNumber instead, otherwise use
the existing Apply-To value.

HTH,
 
G

George Nicholson

My bad. My veryyyyy bad.

I meant to say:
=NZ([Apply-To],[InvoiceNumber])

--
George Nicholson

Remove 'Junk' from return address.


George Nicholson said:
Create an update query. Add your "Apply-To" field. Under "UpdateTo":
=NZ([Apply-To],[Apply-To],[InvoiceNumber])

Translation: If Apply-To is Null, use InvoiceNumber instead, otherwise use
the existing Apply-To value.

HTH,
--
George Nicholson

Remove 'Junk' from return address.


Tom magee via AccessMonster.com said:
We get a file from a 3rd party where a field is populated with an invoice
reference number or <Null>.

I have one table where I have both credit-memos and invoice details.

The field where the Null appears (relating to a credit memo) refers to an
invoice number

The invoice records have <Null> because the invoice number is held in
"Invoice Number"

I want to have the null replaced with the contents of another
field...like
an IF statement I guess.

Can anyone help?




Tom



What am i upto ? Matching invoice numbers and credit memos.
 

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

Similar Threads

Make Table Query help? 6
Append Querries 4
Help needed in updating a field on a form. 1
Run-time error '3075' 10
Outlook Creating an Outlook form 2
Primary Key Question 1
DSUM?? 3
Counting items in a report 2

Top