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

Another question about queries

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
2 1583
On Apr 25, 11:09 am, Dori...@aol.com wrote:
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

Try this. Create a como box (or list box) with columns for event
number, name, date etc.
Make event number the column bound.
Create text boxes that have as data source Me.combobox.Column(1) and
Me.combobox.Column(2) etc for as many columns as desired to display.
Next create as list box with as many columns as needed to display
volunteer info, name etc.
The record source for the list box should be a query based on the
volunteer table with criteria being set as the bound column of
Me.combobox.Column(0)
the list box will then only display information for the event selected
in the combo box

Apr 29 '07 #2
Jay
Doris, could you please stop multi-posting the same question.

You've posted this 3 times - twice as the original poster and once
semi-hijacking another thread. It just means people can duplicate
responses, wasting their time answering queries someone else may have
already dealt with.

It's usual newsgroup etiquette, please observe it.

Jason

lg********@gmail.com wrote:
On Apr 25, 11:09 am, Dori...@aol.com wrote:
>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


Try this. Create a como box (or list box) with columns for event
number, name, date etc.
Make event number the column bound.
Create text boxes that have as data source Me.combobox.Column(1) and
Me.combobox.Column(2) etc for as many columns as desired to display.
Next create as list box with as many columns as needed to display
volunteer info, name etc.
The record source for the list box should be a query based on the
volunteer table with criteria being set as the bound column of
Me.combobox.Column(0)
the list box will then only display information for the event selected
in the combo box
Apr 29 '07 #3

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

Similar topics

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: Todd D. Levy | last post by:
I am moving 3 fields & associated data from 1 table to another. I will have to make the necessary changes to forms, code, queries, & reports, etc. It is the reports, and the queries that they...
5
by: Daniel Tan | last post by:
Are there anyway to copy rows of records from one query to another query and then hide the records in source query ? Pls advise. Thanks. Regards, Daniel
2
by: Jeff Barry | last post by:
Hi, I wonder if any one can help, I'm pretty new to Access and I can't figure out how to change the contents of a combo box based on a selection I make in another. Let me explain I have a...
9
by: bubbles | last post by:
Newbie transiting from VBA to TSQL, using SQL Server 2005 Enterprise: Need help to do this: Open Table_A WITH TableA DO UNTIL .EOF Read value from TableA.ColumnA Run SQL Statement on...
3
by: rfuscjr via AccessMonster.com | last post by:
This is truly bizzare. I have a query that runs for hours in one Access db. When I import it into another Access db, it runs in minutes. I compacted and repaired the original, relinked tables...
11
by: Josetta | last post by:
I searched around a little bit, but didn't come up with the answer to this question, but somewhere in the back of my mind, I think this can be done... Let's say we have two different company...
4
by: Doris | last post by:
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...
11
by: fniles | last post by:
One of our application uses VB6 and Access97 database. Another application uses VB.NET 2005. This morning for about 15 seconds when the application tries to read either a query or a table from the...
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...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.