null is query's 2003 access (1 Viewer)

dreamdelerium

Registered User.
Local time
Today, 11:04
Joined
Aug 24, 2007
Messages
88
one more thing. in the query design window, for an update query, you can enter criterias. what if your criteria is an empty (or null) value. i tried just using Is Null but it doesnt replace the old values. (ie, if value = "N/A" or null value, change to 99)
 

mattkorguk

Registered User.
Local time
Today, 19:04
Joined
Jun 26, 2007
Messages
301
Criteria should read something like this: "N/A" or Is Null or " "
You'll probably find that the values aren't actually Null, just blank.
 

dreamdelerium

Registered User.
Local time
Today, 11:04
Joined
Aug 24, 2007
Messages
88
yeah, ive tried that. it doesnt seem to work
 

mattkorguk

Registered User.
Local time
Today, 19:04
Joined
Jun 26, 2007
Messages
301
What results do you get if change it to a select query and have the criteria as Is Null?
Just try each value on it's own, and check results. You've probably tried that too though?!
 

LPurvis

AWF VIP
Local time
Today, 19:04
Joined
Jun 16, 2008
Messages
1,269
Can you post the actual query you're currently using? (From SQL view of course :)
 

Brianwarnock

Retired
Local time
Today, 19:04
Joined
Jun 2, 2003
Messages
12,701
In the updateto code
=IIf(Isnull([fieldname]) OR [fieldname] =" " OR [fieldname]="N/A",99,[Fieldname])

Brian
 

Users who are viewing this thread

Top Bottom