473,382 Members | 1,313 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,382 software developers and data experts.

another query question

It does not look like my message is posting....if this is a 2nd or 3rd
message, please forgive me as I really don't know how this site works.

I want to apologize ahead of time for being a novice with MS Access
and VBA. I desperately need help with 2 queries that I am trying to
put together. I want to thank anyone that can help me out with this
situation.

I want to put a select query(Query1) that uses one table and the
criteria would be [Enter the Event Number]. When an event number is
entered it will give me the Event Number, Event Name, Event Date,
Event time, and House Size. Next, I need to create a 2nd
query(Query2) that pulls up the records from another table by the
Event Number.

Below are the tables and fields that I am using in both queries

The table that stores the events is called tblEvents contains these
fields: RecordNumber, EventNumber, EventName, EventDate, EventTime,
HouseSize, HouseLocation, the following are all Yes/No fields within
this table: Concessions, CrownClub, Sort, and Rotation. This table is
used in Query1

I have a table that stores job codes and contains the following fields
RecordNumber, JobCode, and JobCodeDescription. From this table I only
pull the JobCodeDescription using the job code field. This table will
be used in Query2.

The table that contains the volunteer information is called
tblVolunteers has RecordNumber, VolunteerNumber, FirstName, LastName,
Address1, Address2, City, State, Zip, HomeTel, BusTel, CellTel,
EmailAddr, EmergencyContactNm, EmergencyContactTel and StatusCode,
actually the tblVolunteer finds only the first name and last name of
the volunteer using the VolunteerNumber. This will be used in Query2

I have another table that would be involved and it's called
tblWorkHours which contains the following fields: RecordNumber,
VolunteerNumber, JobCode, EventNumber, TimeIn, TimeOut and
DateWorked. This is the primary table in Query2...this is where I get
my EventNumber from....there are many records in this table with the
same Event Number. This table will be used in Query2.

Doris

Apr 25 '07 #1
4 2019
Doris wrote:
It does not look like my message is posting....if this is a 2nd or 3rd
message, please forgive me as I really don't know how this site works.

I want to apologize ahead of time for being a novice with MS Access
and VBA. I desperately need help with 2 queries that I am trying to
put together. I want to thank anyone that can help me out with this
situation.

I want to put a select query(Query1) that uses one table and the
criteria would be [Enter the Event Number]. When an event number is
entered it will give me the Event Number, Event Name, Event Date,
Event time, and House Size. Next, I need to create a 2nd
query(Query2) that pulls up the records from another table by the
Event Number.

Below are the tables and fields that I am using in both queries

The table that stores the events is called tblEvents contains these
fields: RecordNumber, EventNumber, EventName, EventDate, EventTime,
HouseSize, HouseLocation, the following are all Yes/No fields within
this table: Concessions, CrownClub, Sort, and Rotation. This table is
used in Query1

I have a table that stores job codes and contains the following fields
RecordNumber, JobCode, and JobCodeDescription. From this table I only
pull the JobCodeDescription using the job code field. This table will
be used in Query2.

The table that contains the volunteer information is called
tblVolunteers has RecordNumber, VolunteerNumber, FirstName, LastName,
Address1, Address2, City, State, Zip, HomeTel, BusTel, CellTel,
EmailAddr, EmergencyContactNm, EmergencyContactTel and StatusCode,
actually the tblVolunteer finds only the first name and last name of
the volunteer using the VolunteerNumber. This will be used in Query2

I have another table that would be involved and it's called
tblWorkHours which contains the following fields: RecordNumber,
VolunteerNumber, JobCode, EventNumber, TimeIn, TimeOut and
DateWorked. This is the primary table in Query2...this is where I get
my EventNumber from....there are many records in this table with the
same Event Number. This table will be used in Query2.

Doris
Hi Doris:

What exactly do you need? It appears you have created the queries. Or
are you having a hard time in creating the queries? You describe a
situation but I don't know if you are stating what you have or if you
need help on how to create the queries.

I don't even know if you need the event in Query1 to be the event id
used in query2...IOW are they two separate queries or is query2
dependent on the event in query1?

Apr 26 '07 #2
On 25 Apr 2007 09:37:16 -0700, Doris <Do*****@aol.comwrote:
>It does not look like my message is posting....if this is a 2nd or 3rd
message, please forgive me as I really don't know how this site works.

I want to apologize ahead of time for being a novice with MS Access
and VBA. I desperately need help with 2 queries that I am trying to
put together. I want to thank anyone that can help me out with this
situation.

I want to put a select query(Query1) that uses one table and the
criteria would be [Enter the Event Number]. When an event number is
entered it will give me the Event Number, Event Name, Event Date,
Event time, and House Size. Next, I need to create a 2nd
query(Query2) that pulls up the records from another table by the
Event Number.

Below are the tables and fields that I am using in both queries

The table that stores the events is called tblEvents contains these
fields: RecordNumber, EventNumber, EventName, EventDate, EventTime,
HouseSize, HouseLocation, the following are all Yes/No fields within
this table: Concessions, CrownClub, Sort, and Rotation. This table is
used in Query1

I have a table that stores job codes and contains the following fields
RecordNumber, JobCode, and JobCodeDescription. From this table I only
pull the JobCodeDescription using the job code field. This table will
be used in Query2.

The table that contains the volunteer information is called
tblVolunteers has RecordNumber, VolunteerNumber, FirstName, LastName,
Address1, Address2, City, State, Zip, HomeTel, BusTel, CellTel,
EmailAddr, EmergencyContactNm, EmergencyContactTel and StatusCode,
actually the tblVolunteer finds only the first name and last name of
the volunteer using the VolunteerNumber. This will be used in Query2

I have another table that would be involved and it's called
tblWorkHours which contains the following fields: RecordNumber,
VolunteerNumber, JobCode, EventNumber, TimeIn, TimeOut and
DateWorked. This is the primary table in Query2...this is where I get
my EventNumber from....there are many records in this table with the
same Event Number. This table will be used in Query2.

Doris
Do relationships exist between tables?

Chuck
--
Apr 26 '07 #3
Jay
Doris,

It's not clear from your original post exactly what you need so if I've
misunderstood please forgive me.

Your 1st query needs to be a parameter query as you want it to return
the record(s) based on user-input. Simply create the select query as
normal, by dragging the fields required to adjacent columns in the QBE
grid, then type [Enter the Event Number] in the 'criteria' row of the
EventNumber column. This will cause an automatic dialog box when the
query is run. The dialog box will display the text from within the
square brackets and prompt for the user input.

As for your 2nd query, you've not really said what you need it to do.
You have referred to the following tables:

tblVolunteers
tblWorkHours

Are these the only tables with fields you need returning in your query?

Please post what you need your query to do and I will try to help.
Doris wrote:
It does not look like my message is posting....if this is a 2nd or 3rd
message, please forgive me as I really don't know how this site works.

I want to apologize ahead of time for being a novice with MS Access
and VBA. I desperately need help with 2 queries that I am trying to
put together. I want to thank anyone that can help me out with this
situation.

I want to put a select query(Query1) that uses one table and the
criteria would be [Enter the Event Number]. When an event number is
entered it will give me the Event Number, Event Name, Event Date,
Event time, and House Size. Next, I need to create a 2nd
query(Query2) that pulls up the records from another table by the
Event Number.

Below are the tables and fields that I am using in both queries

The table that stores the events is called tblEvents contains these
fields: RecordNumber, EventNumber, EventName, EventDate, EventTime,
HouseSize, HouseLocation, the following are all Yes/No fields within
this table: Concessions, CrownClub, Sort, and Rotation. This table is
used in Query1

I have a table that stores job codes and contains the following fields
RecordNumber, JobCode, and JobCodeDescription. From this table I only
pull the JobCodeDescription using the job code field. This table will
be used in Query2.

The table that contains the volunteer information is called
tblVolunteers has RecordNumber, VolunteerNumber, FirstName, LastName,
Address1, Address2, City, State, Zip, HomeTel, BusTel, CellTel,
EmailAddr, EmergencyContactNm, EmergencyContactTel and StatusCode,
actually the tblVolunteer finds only the first name and last name of
the volunteer using the VolunteerNumber. This will be used in Query2

I have another table that would be involved and it's called
tblWorkHours which contains the following fields: RecordNumber,
VolunteerNumber, JobCode, EventNumber, TimeIn, TimeOut and
DateWorked. This is the primary table in Query2...this is where I get
my EventNumber from....there are many records in this table with the
same Event Number. This table will be used in Query2.

Doris
Apr 27 '07 #4
Jay
Doris,

I just noticed your earlier post from the 18th, from which it appears my
advice re the parameter query may be redundand :-)

Is this what you're trying to do: -

Use the EventNumber field entered into the parameter select query to
return fields from tblVolunteers and tblWorkHours to give you
information related to the 26 job types - effectively giving you a kind
of staff manifest for a particular event.

If so, from the info you've given you'd need to create a new query and
in the QBE grid add your first parameter query, tblVolunteers and
tblWorkHours. Then link the EventNumber field in the first query to the
EventNumber field in tblWorkHours (just click and drag from one to the
other to set the link). Then link the VolunteerNumber field in
tblVolunteers to the same field in tblWorkHours (again by simply
clicking one and dragging one to the other). If you've created the
links correctly a line will appear between the selected fields in each
table.

You can now just drag & drop the fields needed to the QBE grid columns.
You can select fields from either of the tables or the source query.

Although by using a the parameter field you may have to re-input the
event number, even if the source query is open. If this is the correct
scenario if you let me know and we can address that

Jay wrote:
Doris,

It's not clear from your original post exactly what you need so if I've
misunderstood please forgive me.

Your 1st query needs to be a parameter query as you want it to return
the record(s) based on user-input. Simply create the select query as
normal, by dragging the fields required to adjacent columns in the QBE
grid, then type [Enter the Event Number] in the 'criteria' row of the
EventNumber column. This will cause an automatic dialog box when the
query is run. The dialog box will display the text from within the
square brackets and prompt for the user input.

As for your 2nd query, you've not really said what you need it to do.
You have referred to the following tables:

tblVolunteers
tblWorkHours

Are these the only tables with fields you need returning in your query?

Please post what you need your query to do and I will try to help.
Doris wrote:
>It does not look like my message is posting....if this is a 2nd or 3rd
message, please forgive me as I really don't know how this site works.

I want to apologize ahead of time for being a novice with MS Access
and VBA. I desperately need help with 2 queries that I am trying to
put together. I want to thank anyone that can help me out with this
situation.

I want to put a select query(Query1) that uses one table and the
criteria would be [Enter the Event Number]. When an event number is
entered it will give me the Event Number, Event Name, Event Date,
Event time, and House Size. Next, I need to create a 2nd
query(Query2) that pulls up the records from another table by the
Event Number.

Below are the tables and fields that I am using in both queries

The table that stores the events is called tblEvents contains these
fields: RecordNumber, EventNumber, EventName, EventDate, EventTime,
HouseSize, HouseLocation, the following are all Yes/No fields within
this table: Concessions, CrownClub, Sort, and Rotation. This table is
used in Query1

I have a table that stores job codes and contains the following fields
RecordNumber, JobCode, and JobCodeDescription. From this table I only
pull the JobCodeDescription using the job code field. This table will
be used in Query2.

The table that contains the volunteer information is called
tblVolunteers has RecordNumber, VolunteerNumber, FirstName, LastName,
Address1, Address2, City, State, Zip, HomeTel, BusTel, CellTel,
EmailAddr, EmergencyContactNm, EmergencyContactTel and StatusCode,
actually the tblVolunteer finds only the first name and last name of
the volunteer using the VolunteerNumber. This will be used in Query2

I have another table that would be involved and it's called
tblWorkHours which contains the following fields: RecordNumber,
VolunteerNumber, JobCode, EventNumber, TimeIn, TimeOut and
DateWorked. This is the primary table in Query2...this is where I get
my EventNumber from....there are many records in this table with the
same Event Number. This table will be used in Query2.

Doris
Apr 27 '07 #5

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

Similar topics

4
by: cwhite | last post by:
Hi I have another drop list question. I have a table like this: computer dell computer ibm computer hp
2
by: terence.parker | last post by:
I am often faced with the dilemma of whether to use a JOIN query across three tables in order to grab a bunch of results - or whether to create another table to represent what I want. The latter is...
8
by: DH | last post by:
Say I have a table with two columns that matter to this example, and . And here is an example of what the rows currently look like: , 1,6/27/2001 1,6/27/2001 1,5/31/2001 2,6/27/2001...
2
by: Daniel | last post by:
I use an Access database to basically take data exports, import them, manipulate the data, and then turn them into exportable reports. I do this using numerous macros, and queries to get the data...
2
by: Wayne Aprato | last post by:
I posted this yesterday and it seems like a moderator has thrown it in another thread. This is a totally different question to the one asked in that thread, so I'm posting it again. It is not a...
1
by: meganrobertson22 | last post by:
hi everybody- what is the best way to add data from one form to another? i have 2 tables: person and contract. here are some of the fields. table: person personid (autonumber and primary...
1
by: hmiller | last post by:
I'm sorry to populate the server with yet another question about linking multiple tables and queries, howerver I have not been able to find the right criteria. My problem. I am trying to...
0
by: cor | last post by:
In Access(97) I am able to have a cell to be a hyperlink referencing a spreadsheet, a cell, a column or a database's table or query. When I click on it It opens on such reference program. The...
2
by: Dorish3 | last post by:
I want to apologize ahead of time for being a novice with MS Access and VBA. I desperately need help with 2 queries that I am trying to put together. I want to thank anyone that can help me out...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.