• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Access: Field Update Expression

GeekDrew

Diamond Member
I have a database with field Banquet defined. I need to do the following:

If Banquet=0, then leave Banquet=0
If Banquet=null, then Banquet=1
If Banquet=>0, then Banquet=Banquet+1

I'm sure that there's a simple way to do this, but I can't figure it out... could be because it's now 2AM. Oh well....

Anyone?
 
Hi

Past this as SQL into a new query.. change "tblTest" to be the name of your table.

UPDATE tblTest SET tblTest.Banquet = nz([Banquet])+1
WHERE (((tblTest.Banquet)>0 Or (tblTest.Banquet) Is Null));

Regards

Nick
 
Back
Top