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

Is it possible to bind form controls to VBA properties?
SQL Query to retrieve Item name and sum of amounts for that item
Query missing data from select fields for only 2 records
Microsoft Access - Search Query
Like with IIF and date range not returning results
OPening multiple copies of ACCESS app
Access New ID Field YYYYMMNN [duplicate]
Sequential Number Column with YYYYMM
I am trying to get the correct font size for my subform in Access
Start and stop MS Access VBA code on a specific time
Table Joining (ms Access, sql)
Howto write DDL ALTER TABLE Modify statement using string variable for TABLE name
Filter combobox: how to add “NOT filtered” option?
access 2010 form new record pre filled button
Azure SQL authentication with Office 365 Account
Microsoft Access displays both months and years differences

Categories

HOME
asp.net-core
gerrit
keycloak
cookies
pycharm
smarty
grep
xmpp
routes
rsync
spring-jdbc
rubygems
frameworks
c#-2.0
ip
sql-server-2016
medical
nano-server
floating-action-button
modelica
phaser
orchardcms
quickfix
quartz-scheduler
systemc
evopdf
oxyplot
autocad-plugin
ml
java-3d
language-agnostic
jndi
su
windows-error-reporting
saas
windows-server-2000
stormpath
webtest
textmate
amazon-kinesis-kpl
android-ble
revolution-slider
vxworks
git-merge
jquery-bootgrid
hockeyapp
withings
c11
az-application-insights
cookiecutter-django
trim
graphenedb
awt
ncalc
texmaker
janrain
jvm-languages
ibpy
mime
unixodbc
sas-jmp
wso2carbon
clean-architecture
pebble-watch
mplayer
diagnostics
np-complete
or-tools
xcb
google-feed-api
heidisql
libpng
plottable.js
contact-list
multiple-regression
clang-static-analyzer
pagedlist
actionbardrawertoggle
suffix-tree
ios4
pervasive-sql
intel-fortran
icu4j
atk4
django-unittest
browser-bugs
ibaction
c++03
applescript-objc
markers
neolane
expected-exception
kgdb
oracle-warehouse-builder
coverflow
tws
bulkloader
batterylevel
buster.js
interface-orientation
distutils
browser-detection
mt
labwindows
ticoredatasync
online-compilation
mercurial-server
gnu-prolog
joyent
disclosure
imac
cxxtest
zune
ugc





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