473,387 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Database Dilemma

I'm having some access problems that perhaps you could help me with.
For a school project I am required to create a database package for a
company. The company I chose was late in supplying some very vital
information so I am now behind in the database development and I find
it hard to over come certain obstacles.

1) When using auto numbers in one table should a related table use
auto numbers for that field as well?

2) When using Auto- Numbers what process should be used when adding
records through a form so all the tables containing similar fields are
updated

3) Is there anyway to filter a form's results?
Respectfully,
Andre Browne

Mar 19 '07 #1
4 1172
Replies embedded.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<Dr********@gmail.comwrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...
I'm having some access problems that perhaps you could help me with.
For a school project I am required to create a database package for a
company. The company I chose was late in supplying some very vital
information so I am now behind in the database development and I find
it hard to over come certain obstacles.

1) When using auto numbers in one table should a related table use
auto numbers for that field as well?
No. The related table uses a field of the same type and size.
To match an AutoNumber, use a Number of size Long Integer.
2) When using Auto- Numbers what process should be used when adding
records through a form so all the tables containing similar fields are
updated
AutoNumbers don't change, so you do not need to alter the foreign keys that
relate to the autonumber.
3) Is there anyway to filter a form's results?
Many ways:
- Filter By Selection (toobar button)
- Filter By Form (toolbar button)
- Click Filter on the Records menu for more options.
- Right-click a control on a form to filter.
- Apply a filter programmatically.

I'm guessing you don't want to program it for a school project, but if you
do, here's a few examples:
http://allenbrowne.com/casu-15.html
http://allenbrowne.com/casu-08.html
http://allenbrowne.com/AppFindAsUType.html
http://allenbrowne.com/ser-62.html

Mar 19 '07 #2
Thank you, this data was very helpful (particularly that info on your
site). I have one last question. Is there anyway to restrict the
values in a combo box. For example; Each good is given a
classification, however many goods may have the same classification,
but i do not want the same classification to be repeated in the combo
box

Respectfully (almost joyfully) :),
Andre Browne

Mar 20 '07 #3
You are suggesting a many-to-many relation where one item can belong to many
classifications, and one classification can apply to many items.

You need 3 tables to model that: on for items, one for classifications, and
one for the junction of the two (combinations of ItemID + ClassificationID.)

Once you have that structure in place, the primary key of the junction table
becomes the bound column of the combo.

(A combo has only one bound column, so it might be best not to use a
compound key for the junction table.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<Dr********@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
Thank you, this data was very helpful (particularly that info on your
site). I have one last question. Is there anyway to restrict the
values in a combo box. For example; Each good is given a
classification, however many goods may have the same classification,
but i do not want the same classification to be repeated in the combo
box

Respectfully (almost joyfully) :),
Andre Browne
Mar 20 '07 #4
rkc
Dr********@gmail.com wrote:
Thank you, this data was very helpful (particularly that info on your
site). I have one last question. Is there anyway to restrict the
values in a combo box. For example; Each good is given a
classification, however many goods may have the same classification,
but i do not want the same classification to be repeated in the combo
box
Set the recordsource of your combobox to a query instead of a table and
use the distinct keyword.

SELECT Distinct Classification From TheGoodsTable
Mar 20 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Pat A | last post by:
We have a dilemma. We are storing our database password in an include file that resides outside of the web root. The password is in plain text. So, no one can get that password because it can't...
2
by: Jose | last post by:
Hello, A utility I was running caused our database's log file to run out of hard drive. So, I detached the database, deleted the log file, and tried to reattach. SQL server fails to...
3
by: Dave Smithz | last post by:
Hi There, Being quite new to MS-SQL I would like to ask if there is a general opinion of what approach should be taken to storing things like external documents and images in databases. ...
9
by: John | last post by:
Greetings. I apologize for posting this if it is in the wrong group. The boss last week dropped vb.net on my desk and wants to create a web app and a corresponding desktop app. And I'm a newbie to...
3
by: reageer | last post by:
Hi all, I have a design question: I have a bunch of users (name, address, zip, etc.). They are assigned a card with a specific id. The only thing unique is this card id, or probably the...
16
by: hzmonte | last post by:
Correct me if I am wrong, declaring formal parameters of functions as const, if they should not be/is not changed, has 2 benefits; 1. It tells the program that calls this function that the...
1
by: pobnospam | last post by:
I am working with several different departmnets on an accounting database I created. It has been in use by one department for several years to track reconciliations. Now several other departments...
1
by: Parasyke | last post by:
I have a dilemma. I have 20 branch offices that need to be able to upload their unique copy of all their backend tables to a master database at a corporate office. I really need only a copy of...
15
by: chaseexchange | last post by:
First, a brief explanation of why this has happened. I purchased, what I thought, was a fully functional program written in Access last year from a local programmer. This program was to be used as...
10
code green
by: code green | last post by:
I wasn't sure what title to give this, or whether I can explain my dilemma, but here goes. My company sells products that are inter-compatible with each other, mainly four ranges I will call...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.