473,776 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Beginner's contact list question

I'm trying to set up a contact list in MS Access 97. I've looked
through a reference book and the program's help screens, but the light
bulb isn't quite coming on for me. If one of you could take the time
to answer two very elementary questions, I'd appreciate it.

Suppose the contact list consists of (for example) musicians and
teachers. For every person in the list, we keep name, address, etc.
For musicians, we keep track of what instruments they play, and
whether they sing or not. For teachers, we keep track of what subject
they teach, and what grade they teach ... but we also keep track of
the school's name and address (because we might meet more than one
teacher at each school, and we don't want to input the school
information more than once.)

My two questions:

1. When entering a new contact on a form, is it possible to select
"musician or teacher," and whichever one you pick, you get the
specific questions related to each? (In other words, if you pick
musician, you're asked about instruments, band name, etc, and if you
pick teacher, you're asked about school name, grade, etc.)??

2. I understand that there will be a separate table for teachers,
which would include (for example) school name and address, but would
there also be a separate table for musicians? What would it include?

The ultimate goal is to be able to (for example) find what was the
name of that saxophone player from Ohio, or who do we know who teaches
7th-grade math. At at the same time, we might need to find anyone's
e-mail address, or do a mail-merge to everyone. I think that I can
figure out the report part, but inputting the data in a convenient way
(as described above) is the part I don't get.

Again, I know this is real basic stuff. Thanks in advance for any
tips!

Nov 15 '06 #1
1 2562
Hey Robert-
here are some thoughts in answer to your questions:
First, would it ever be possible that someone is both a musician and a
teacher?
If so, you might want to be able to enter both kinds of info for that
person, so a tab control with "teacher" info on one tab and 'musician' info
on the other might be a good way to go.
If they are really mutually exclusive, then you can have the form "ask" you
for the relevant info if you can do some visual basic programming. In the
"after update" event of whatever control you use to select "teacher vs
musician", you would write some code to make the appropriate controls
visible and the others invisible. You could do this in various ways: you
could prefix all the musician controls with 'mus' and then make all the
controls that start with 'mus' invisible (not really beginner's visual
basic), or you could make a subform for each set of controls and hide/show
the appropriate subform.
I'm assuming you have all the musicians and teachers in the same table, and
then are thinking of having a separate 1 to 1 table for teacher info, such
as schoolID (linked to a another table of just schools: ID, name, address,
etc.), grade, subject. For the musician info, which looks like it's just
instrument and singing at this point, you could either make a separate
table, or just put these fields in the 'people' table and only fill them in
when the person is a musician. You could also keep teacher fields in the
people table as well, and set up the interface so that they can only be
filled in for teachers, since we are only talking about 3 or so fields.
hope this helps
-John

"Robert J. Bonn" <rj****@snet.ne twrote in message
news:91******** *************** *********@4ax.c om...
I'm trying to set up a contact list in MS Access 97. I've looked
through a reference book and the program's help screens, but the light
bulb isn't quite coming on for me. If one of you could take the time
to answer two very elementary questions, I'd appreciate it.

Suppose the contact list consists of (for example) musicians and
teachers. For every person in the list, we keep name, address, etc.
For musicians, we keep track of what instruments they play, and
whether they sing or not. For teachers, we keep track of what subject
they teach, and what grade they teach ... but we also keep track of
the school's name and address (because we might meet more than one
teacher at each school, and we don't want to input the school
information more than once.)

My two questions:

1. When entering a new contact on a form, is it possible to select
"musician or teacher," and whichever one you pick, you get the
specific questions related to each? (In other words, if you pick
musician, you're asked about instruments, band name, etc, and if you
pick teacher, you're asked about school name, grade, etc.)??

2. I understand that there will be a separate table for teachers,
which would include (for example) school name and address, but would
there also be a separate table for musicians? What would it include?

The ultimate goal is to be able to (for example) find what was the
name of that saxophone player from Ohio, or who do we know who teaches
7th-grade math. At at the same time, we might need to find anyone's
e-mail address, or do a mail-merge to everyone. I think that I can
figure out the report part, but inputting the data in a convenient way
(as described above) is the part I don't get.

Again, I know this is real basic stuff. Thanks in advance for any
tips!

Nov 16 '06 #2

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

Similar topics

3
2126
by: Phil | last post by:
Hi everybody, I am a XSLT beginner and the following problem really makes me crazy ! I have a main "contacts.xml" document which contains references to several contact data XML files. My aim is to process the contacts in a single-pass XSLT process. That is why the "document()" function is what I need. I call the "document()" XPath function from a "for-each" instruction.
24
1687
by: tom pester | last post by:
Hi All, I am learning php an I am amazed how easy a PHP noob like me can acheive so much in little time. I am planning to take part in the community and noticed these 3 newsgroups : -alt.comp.lang.php -comp.lang.php -alt.php
1
1650
by: nozone | last post by:
Hi all. I am beginner in C. My question is: What is " \n" inside scanf()? Here is part of the implementation of an example: ... char myChar; int myID; scanf("%c", &myChar); scanf("%d\n"; &myID); printf("Option: %c, ID: %d\n", myChar, ID); ...
5
5951
by: janetb | last post by:
Environment is Server2003,IIS6,Asp.net 2,VisualStudio2005,SQl2005. 1. Event viewer showing lots of session abandon errors. asp.nt 2.0.50727.0 web event id: 1309 event code 3005 An unhandled exception has occurred Thread ID: 8 Thread account name: NT AUTHORITY\SYSTEM Is impersonating: False Stack trace: at System.Web.HttpApplication.get_Response()
1
1206
by: shagsj | last post by:
Hey all, I'm setting up a website for a game that my club plays. the site is to keep a record of the games played for a league. We have a spreadsheet to prepare the team rosters which I want to be able to easily update on our website. To do this I setup a button in excel that exports the data to an xml file. This works fine. The problem I have is with the table I tried to prepare in xsl. I am having troubles setting the width of the...
20
1590
by: OregonMike | last post by:
I'm a C# guy tasked with fixing some bugs in VB.NET code. I've run into something that doesn't seem to make sense. I have an Object reference to a System.Windows.Forms.ToolStripComboBox Object that gets initialized and performs just fine. Now, when closing the app, this object gets Disposed. I'm trying to check whether this object is null (Nothing, I presume) before calling one of its Properties. It seems pretty simple, but the test for...
0
780
by: =?Utf-8?B?TkMgQmVhY2ggQnVt?= | last post by:
I am new to ASP and working on my first project and I must setup a connection to my sql server. I have been working in Coldfusion and new to ASP. I am thinking the best way to setup the SQL Database connection is with a single user logon ID and Password from the web server to the sql server. Then as a SQL Server query check the Logon ID and Pasword on the user using the web application. Does this sound right? If so, can you point...
22
18151
by: ddg_linux | last post by:
I have been reading about and doing a lot of php code examples from books but now I find myself wanting to do something practical with some of the skills that I have learned. I am a beginner php programmer and looking for a starting point in regards to practical projects to work on. What are some projects that beginner programmers usually start with? Please list a few that would be good for a beginner PHP programmer to
0
10120
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9923
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7471
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6722
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5367
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5493
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4031
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.