473,406 Members | 2,705 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,406 software developers and data experts.

Record Selector Macros

I have the following tables.

tbl_customer
CustID Primary key
Custname
Custaddr

tbl_Quote
QuoteNo Primary key
ProjectName
ProjectAddr

Relationship: tbl_cust (one) ---- (many) tbl_quote

I have a form: frm_srchcust (linked to qry_srchcust )

A subform ( subfrm_project ) is nestled in this form. Subform linked to
query qry_viewquote

The frm_srchcust has customers details for a given CustID number.

The subform provides all projects associated with the custID. In the
subform, there are record selectors against each record.

Q: i want to be able to click the record selector for a given record (that
shows a certain Quote No. that i want) and then have the frm_viewquote open,
showing the details of that particular quote number.
Any help would be appreciated.
Nov 13 '05 #1
1 1663
What you request is the normal behavior of Main-Subform setups if the
parent-child link is defined correctly.

In your tables, you don't show a foreign key of [CustID] in the tbl_Quote;
you need one. With it, is the only way you could have a correct 1-many
relationship between the two tables.
-Ed
"Gt394" <g4****@hotmail.com> wrote in message
news:43***********************@news.optusnet.com.a u...
I have the following tables.

tbl_customer
CustID Primary key
Custname
Custaddr

tbl_Quote
QuoteNo Primary key
ProjectName
ProjectAddr

Relationship: tbl_cust (one) ---- (many) tbl_quote

I have a form: frm_srchcust (linked to qry_srchcust )

A subform ( subfrm_project ) is nestled in this form. Subform linked to
query qry_viewquote

The frm_srchcust has customers details for a given CustID number.

The subform provides all projects associated with the custID. In the
subform, there are record selectors against each record.

Q: i want to be able to click the record selector for a given record (that
shows a certain Quote No. that i want) and then have the frm_viewquote
open,
showing the details of that particular quote number.
Any help would be appreciated.

Nov 13 '05 #2

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

Similar topics

5
by: deko | last post by:
I have a subform datasheet that contains a full year of records sorted by a date field. I'm trying to programmatically move the record selector on the datasheet to the first record that matches a...
5
by: Mary Litten | last post by:
Hi - (This is my very first post) I have gotten to this point of registering to post because I have been spinning my wheels so long, I believe I am all caught up in the weeds. (and mud) I have...
7
by: Megan | last post by:
Hi everybody- I inherited a database that somehow uses a bound combo box as a record selector. Let me give you some background. The form is based on data from 2 tables. The first table, Person,...
0
by: Patrick | last post by:
I'm working on a contact management application, and need a hand with one aspect... Here's what I want to create: ------------------------------------ A form split into two parts. There is a...
1
by: wheel | last post by:
I have been ok with optimistic locking most of the time but I have a situation now where there is more of a chance that users could try to edit a record at the same time. I'd like to use pessimitic...
5
by: campbellbrian2001 | last post by:
I'm trying to get the "Carry data over to new record" code to work from Allen Browne's site: http://allenbrowne.com/ser-24.html I follwed the instruction explicitly and somethings not working......
1
by: ConfusedMay | last post by:
Hi, I'm working on a database that has a form which hold all of our products testing. each product can hold more than 1 complete test (complete test here means that product has to have before and...
5
brightshadow
by: brightshadow | last post by:
I have a super simple Access DB with four tables and one form.. I'm an old hand at Excel VBA but am just starting with Access, so this is likely a totally stupid question, but here goes anyway. In...
10
by: jschmidt | last post by:
All, I am trying to have something happen on a form whenever the record selectors are clicked. This is access 2003. I tried the form's click event and that does not work at all. Anyone know...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.