Update Statement

G

Guest

Hello,

I have a table that contains the following columns: ID Record, Phone Number,
Fax Number

Some of the Phone Number as well as Fax Number fields are blank. I'm trying
to update any blank field in both the Phone Number Column and the Fax Number
column to "9999999999" in one query.

Please help!!!

Thanks!
 
D

Duane Hookom

Try an update query with SQL like this:

UPDATE [that contains the following columns]
SET [Phone Number] = Nz([Phone Number],"9999999999"),
[Fax Number] = Nz([Fax Number],"9999999999");
 
G

Guest

I think it worked PERFECT!! Thanks so much......

Quick question - what is Nz???

Duane Hookom said:
Try an update query with SQL like this:

UPDATE [that contains the following columns]
SET [Phone Number] = Nz([Phone Number],"9999999999"),
[Fax Number] = Nz([Fax Number],"9999999999");

--
Duane Hookom
MS Access MVP


Nancy said:
Hello,

I have a table that contains the following columns: ID Record, Phone
Number,
Fax Number

Some of the Phone Number as well as Fax Number fields are blank. I'm
trying
to update any blank field in both the Phone Number Column and the Fax
Number
column to "9999999999" in one query.

Please help!!!

Thanks!
 
D

Douglas J. Steele

http://msdn.microsoft.com/library/en-us/vbaac11/html/acfctNZ_HV05186465.asp

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Nancy said:
I think it worked PERFECT!! Thanks so much......

Quick question - what is Nz???

Duane Hookom said:
Try an update query with SQL like this:

UPDATE [that contains the following columns]
SET [Phone Number] = Nz([Phone Number],"9999999999"),
[Fax Number] = Nz([Fax Number],"9999999999");

--
Duane Hookom
MS Access MVP


Nancy said:
Hello,

I have a table that contains the following columns: ID Record, Phone
Number,
Fax Number

Some of the Phone Number as well as Fax Number fields are blank. I'm
trying
to update any blank field in both the Phone Number Column and the Fax
Number
column to "9999999999" in one query.

Please help!!!

Thanks!
 
G

Guest

PERFECTION!! Thank you so much........

Douglas J. Steele said:
http://msdn.microsoft.com/library/en-us/vbaac11/html/acfctNZ_HV05186465.asp

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Nancy said:
I think it worked PERFECT!! Thanks so much......

Quick question - what is Nz???

Duane Hookom said:
Try an update query with SQL like this:

UPDATE [that contains the following columns]
SET [Phone Number] = Nz([Phone Number],"9999999999"),
[Fax Number] = Nz([Fax Number],"9999999999");

--
Duane Hookom
MS Access MVP


Hello,

I have a table that contains the following columns: ID Record, Phone
Number,
Fax Number

Some of the Phone Number as well as Fax Number fields are blank. I'm
trying
to update any blank field in both the Phone Number Column and the Fax
Number
column to "9999999999" in one query.

Please help!!!

Thanks!
 

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