GregoryWest
Registered User.
- Local time
- Today, 08:21
- Joined
- Apr 13, 2014
- Messages
- 161
I am trying to do something like this:
IF EXISTS (SELECT 1 FROM Table1 WHERE Column1 = 1) BEGIN -- UPDATE QUERY END ELSE BEGIN -- INSERT QUERY END
ENDIF
Does this work in Access 2013 VBA? What I need to do is check to see if a hashcode already exists in the database. If it does update, if it doesn't create new record.
IF EXISTS (SELECT 1 FROM Table1 WHERE Column1 = 1) BEGIN -- UPDATE QUERY END ELSE BEGIN -- INSERT QUERY END
ENDIF
Does this work in Access 2013 VBA? What I need to do is check to see if a hashcode already exists in the database. If it does update, if it doesn't create new record.