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

Microsoft Access 2010 (mdb) automation with user based security
Dropdown list - default value
Share Windows folder outside my local network
VBA Access - Multiple Tables count by date
MS Access Pop-up on table modification
Combining multiple queries in one in Access
Fill table with all month days
Form based on a one-to-many relationship - just show parent records with child actions
Select Max Date by Date Range
MS Access Implementing FULL OUTER JOIN via UNION operator with AGGREGATION
access DLookUp multiple criteria
Combining 3 strings in Access VBA
DoCmd.TransferSpreadsheet triggering Error 3275 “unexpected error from external database driver”
Hyperlink Field with # in File Name
Access 2007: Creating an auto-updating record history
How to get an AfterUpdate procedure to update other fields in the same form

Categories

HOME
vim
server
drivers
kde
react-virtualized
getelementsbytagname
jsrender
onelogin
multiple-records
esper
numeral.js
etl
n-gram
carthage
try-catch
django-simple-history
sms-gateway
nhibernate-envers
samoa
contextmenu
openedx
django-cms
format-specifiers
autosys
emgucv
microsoft-sync-framework
poltergeist
pingfederate
spring-mybatis
directx-10
phonegap
karaf
protovis
avcapturesession
subset-sum
xmlreader
html5-fullscreen
nssegmentedcontrol
suricata
vxworks
bitbucket-pipelines
theano.scan
bootstrapper
modelmapper
thin
google-datalayer
menuitem
smartcontracts
appcompat
filepicker
hendrix
aurelia-validation
setter
csound
composite-key
pg-dump
zendesk-app
bind9
dwscript
objective-c-swift-bridge
angular-strap
instant
infix-notation
intrusion-detection
skobbler-maps
gridview-sorting
marching-cubes
metaclass
cakephp-3.1
twirl
splash
iiviewdeckcontroller
census
c++03
npapi
pick
android-nested-fragment
php-5.4
mesa
eol
tld
sgen
starcluster
htmlcleaner
kgdb
picturefill
jboss-weld
dir
dotnetnuke-5
back-stack
jquery-mobile-dialog
xamlparseexception
android-hardware
free-variable
itmstransporter
jquery-ui-layout
punbb
remember-me
dentrix
gin
nhibernate.search
sector
multiple-languages

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