ms-access


Access 2003: Determine whether one or all of 4 fields exist in table


I have a table which changes every day but will always have the same name (Scrubbed). I need a query to determine whether the new fields exist in the table that day. I'll call them field1, field2, field3, field4.
I had a sql query:
SELECT Scrubbed.field1, Scrubbed.field2, Scrubbed.field3, Scrubbed.field4
FROM Scrubbed;
Which errors with a message box (new fields not in table) if it doesn't find all 4 fields. This isn't working out. If the table contains fields 1 and 2 but not 3 and 4, I need the user to know that without opening the table.

Related Links

ShellExecute() returns error code 5 when trying to open mdb file >10MB
Disable Check Box Based on Other Values
creating a server project in vb6 and ms-access
MS Access Dropdown List/Combo Box
How to communicate between two instances of open MDB with same form?
In Access 2007 CSV Export: Disable Scientific Notation
How do you format date fields of a Union Query in MS Access?
Porting MS Access application
automatically query and convert access db table to excel using vbs
Preserving linked tables for Access DBs in same folder when the folder changes
Disable warning: You copied a large amount of data onto the clipboard
How to get the name of Constraint?
Specify mdw file in embedded connection string to another Jet mdb: possible?
Validation Problem in vba text box
suppress write conflict message in Access VBA
How do I use a Checkbox on a form to add a record into a subform in Microsoft Office Access?

Categories

HOME
testing
bluetooth
wso2
debugging
tizen
iot
spagobi
at-command
jira
electronics
ip
callback
qore
append
pheatmap
dacpac
user-input
event-handling
ibm-odm
ups
iron-router
clojurescript
systemc
telephony
openrefine
serilog
ab-testing
google-pagespeed
opencover
format-specifiers
jndi
buildbot
facebook-access-token
gsmcomm
socialengine
revolution-slider
devextreme
dosbox
dartium
dynamics-crm-2013
ws-security
fedex
nomethoderror
android-mediaprojection
import-from-excel
checkboxlist
segment
websphere-mq-fte
logfiles
avconv
togetherjs
mcafee
blacklist
objective-c-swift-bridge
home-directory
nsfilemanager
etsy
bluegiga
asp.net5
phpcas
jfugue
kendonumerictextbox
execute
comobject
jmeter-maven-plugin
wyam
map-projections
splash
nsight
dundas
web-controls
npapi
gui-test-framework
fpml
applescript-objc
preferences
android-radiobutton
ivyde
xsockets.net
tidy
soundtouch
dotnetnuke-5
padarn
sublist
nsnetservice
zpt
appendto
iphone-web-app
site.master
sproutcore-2
forums
microsoft-virtualization
mediarss
.net-1.0

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App