Jerid
From where I sit, it is exactly the same problem.
Until you normalize your data structure, you might as well be using Excel
instead of Access.
You won't be able to (easily) use Access' features and functions if you
insist on using Excel's data structures.
Regards
Jeff Boyce
Microsoft Office/Access MVP
Someone told me that once before and have not had a chance to change
that
yet.
However similiar project.
Employee Name followed by New Hire, Change, Seperation
Only one of 3 can be checked. When I run a query I do not want the
other 2
to show up. If it's empty I don't want access to show me the reults.
So it's kind of an opposite problem here.
:
Jerid
Your data structure, with "repeating fields" for Vendors, is perfectly
suitable ... if you were using a spreadsheet! Since Access is a
relational
database, setting up your table this way makes for much more work for
both
you and Access.
Take a look at "normalization" and "relational database design". Jeff
Conrad's site:
http://home.bendbroadband.com/conradsystems/accessjunkie/resources.html
has some great resources.
You may ask "what does this have to do with my situation?". Here's a
question/answer...
If you had to add a 5th Vendor, with your design, you'd have to modify
the
table structure, modify any queries using the vendor-concept, modify
any
forms, reports, macros, and code. That is a LOT of maintenance.
With a well-normalized design, you would use the fact that the
relationship
is one-to-many and have a table that records quote number and
VendorID.
If
a quote had one vendor, you'd have one record. If a quote had 7
vendors,
the table would have 7 records.
So, back to your question about "blank" vendors ... you don't have
any!
The
new table design only has as many rows as you DO have vendors.
Regards
Jeff Boyce
Microsoft Office/Access MVP
I have a database with a quote number, Vendor 1, Vendor 2, Vendor 3.
The query ask me a quote number (Like "*" & [Quote Number] & "*")
I type in the quote number and get my results.
However, if Quote number 200 only uses Vendor 1 and Vendor 2 fields
(Vendor
3 is blank because only 2 vendors where contacted) the query comes
back
blank.
As soon as I fill in Vendor 3 with something it shows it.
90% of quotes have 3-4 vendors. Is there a way to tell it to show me
results
regardless of blank entries?
Thank you!