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

Is a DLookup Across Schizophrenic Subforms Possible?

All,

My form "FRM_Main" contains 2 subforms, each an instance of the form
"FRM_Testators"
The object name of instance 1 of the form is "SFRM_Clients".
The object name of instance 2 of the form is "SFRM_Mirrors".

The form contains (among others) the combo boxes "Rel2Client" and
"Rel2Mir". (Indicating the relationship between the client and the
mirror.

I have a lookup table named LU_TBL_Relationships, which contains the
column "REL" with all possible relationships (husband, wife, father,
mother, etc.) and the column "MIR" with all of the possible "mirrors"
of those relationships (wife, husband, father-in-law, mother-in law,
etc.).

Currently, I have code in FRM_Main that sets the combo box
"Rel2Client" to "invisible" on SFRM_Clients and the combo box
"Rel2Mir" to "invisible" on SFRM_Mirrors.

Is there a way, once the user sets the value of the combo box
"Rel2Mir" on SFRM_Clients, I can have a DLookup set the value of
"Rel2Client" on SFRM_Mirrors = to the "mirror" value in the LU table?

I've tried a number of code strings, and don't know if I'm fighting
syntax or trying to do something that can't be done....

Any guidance would be appreciated.

Thanks,

Patrick

Sep 21 '07 #1
3 1513
is it really that simple? what about client as father-in-law - the mirror
could be son-in-law OR daughter-in-law, correct? ditto client as
mother-in-law. and conversely, client as son-in-law could be mirrored by
father- or mother-in-law. and the direct relationships are ambiguous too:
father/son-or-daughter, mother/son-or-daughter, son/father-or-mother,
daughter/father-or-mother.

does your LU_TBL_Relationships include a Gender field to aid in specific
mirror assignment?

hth
"Patrick A" <pa*****@stradley.comwrote in message
news:11*********************@n39g2000hsh.googlegro ups.com...
All,

My form "FRM_Main" contains 2 subforms, each an instance of the form
"FRM_Testators"
The object name of instance 1 of the form is "SFRM_Clients".
The object name of instance 2 of the form is "SFRM_Mirrors".

The form contains (among others) the combo boxes "Rel2Client" and
"Rel2Mir". (Indicating the relationship between the client and the
mirror.

I have a lookup table named LU_TBL_Relationships, which contains the
column "REL" with all possible relationships (husband, wife, father,
mother, etc.) and the column "MIR" with all of the possible "mirrors"
of those relationships (wife, husband, father-in-law, mother-in law,
etc.).

Currently, I have code in FRM_Main that sets the combo box
"Rel2Client" to "invisible" on SFRM_Clients and the combo box
"Rel2Mir" to "invisible" on SFRM_Mirrors.

Is there a way, once the user sets the value of the combo box
"Rel2Mir" on SFRM_Clients, I can have a DLookup set the value of
"Rel2Client" on SFRM_Mirrors = to the "mirror" value in the LU table?

I've tried a number of code strings, and don't know if I'm fighting
syntax or trying to do something that can't be done....

Any guidance would be appreciated.

Thanks,

Patrick

Sep 22 '07 #2
Tina,

In this case, it is simpler than that. The clients and mirrors are
spouses. In the event that my "Relationships" table does not provide
the answer, the user will be able to provide the correct answer.

So I am back to trying to figure out if the DLookup I am trying to do
is possible.

Can anyone provide any guidance on syntax, if so?

Thanks,

Patrick
On Sep 22, 12:43 am, "tina" <nos...@address.comwrote:
is it really that simple? what about client as father-in-law - the mirror
could be son-in-law OR daughter-in-law, correct? ditto client as
mother-in-law. and conversely, client as son-in-law could be mirrored by
father- or mother-in-law. and the direct relationships are ambiguous too:
father/son-or-daughter, mother/son-or-daughter, son/father-or-mother,
daughter/father-or-mother.

does your LU_TBL_Relationships include a Gender field to aid in specific
mirror assignment?

hth

"Patrick A" <park...@stradley.comwrote in message

news:11*********************@n39g2000hsh.googlegro ups.com...
All,
My form "FRM_Main" contains 2 subforms, each an instance of the form
"FRM_Testators"
The object name of instance 1 of the form is "SFRM_Clients".
The object name of instance 2 of the form is "SFRM_Mirrors".
The form contains (among others) the combo boxes "Rel2Client" and
"Rel2Mir". (Indicating the relationship between the client and the
mirror.
I have a lookup table named LU_TBL_Relationships, which contains the
column "REL" with all possible relationships (husband, wife, father,
mother, etc.) and the column "MIR" with all of the possible "mirrors"
of those relationships (wife, husband, father-in-law, mother-in law,
etc.).
Currently, I have code in FRM_Main that sets the combo box
"Rel2Client" to "invisible" on SFRM_Clients and the combo box
"Rel2Mir" to "invisible" on SFRM_Mirrors.
Is there a way, once the user sets the value of the combo box
"Rel2Mir" on SFRM_Clients, I can have a DLookup set the value of
"Rel2Client" on SFRM_Mirrors = to the "mirror" value in the LU table?
I've tried a number of code strings, and don't know if I'm fighting
syntax or trying to do something that can't be done....
Any guidance would be appreciated.
Thanks,
Patrick

Sep 23 '07 #3
Clarifications inside < >'s

All,

My form "FRM_Main" contains 2 subforms, each an instance of the form
"FRM_Testators"
The object name of instance 1 of the form is "SFRM_Clients".
The object name of instance 2 of the form is "SFRM_Mirrors".

<<
Here's a crude example of the layout
Person - SFRM_Clients - SFRM_Mirrors
Bob - Father------------ Father-in-Law
Janet - Mother------------ Mother-in-Law
>>
The SFRM forms contain (among others) the combo boxes "Rel2Client" and
"Rel2Mir". (Indicating the relationship between the <PERSON
CONCERNED>and the Client and the <PERSON CONCERNEDand the mirror.
I have a lookup table named LU_TBL_Relationships, which contains the
column "REL" with all possible relationships (husband, wife, father,
mother, etc.) and the column "MIR" with all of the possible "mirrors"
of those relationships (wife, husband, father-in-law, mother-in law,
etc.).

Currently, I have code in FRM_Main that sets the combo box
"Rel2Client" to "invisible" on SFRM_Clients and the combo box
"Rel2Mir" to "invisible" on SFRM_Mirrors.

Is there a way, once the user sets the value of the combo box
"Rel2Mir" on SFRM_Clients, I can have a DLookup set the value of
"Rel2Client" on SFRM_Mirrors = to the "mirror" value in the LU table?

I've tried a number of code strings, and don't know if I'm fighting
syntax or trying to do something that can't be done....

Any guidance would be appreciated.

Thanks,

Patrick

Sep 25 '07 #4

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

Similar topics

0
by: CSDunn | last post by:
Hello, I have an Access 2000 ADP main form called frmAD_OpeningForm that needs to support several possible sub forms. The subform that should appear would be based on the combined bound values...
12
by: Paul T. RONG | last post by:
Is it possible to divide a tall subform with 80 records to two subforms each with 40 records? Dear All, What I have: Tables: tblProduct, tblOrder, tblOrderDetail
4
by: thx606 | last post by:
Hello, I'm having problems figuring this one out. I have 2 combo boxes. The first one the user selects a professor then the second one they select a course and that works fine. Here is my...
5
by: Richard Stanton | last post by:
Hello all My database has a main form linked to table1. It has several subforms on the main form, all linked to table2. Table1 and Table2 are linked by primary/foreign key, no duplicates...
8
by: Zlatko Matić | last post by:
Hello. How can I synchronize subforms content with current record in master form, if both form and subform are based on DAO code ? I assigned DAO recordset to forms by using QueryDef, on Load...
6
by: Ron | last post by:
Hi All, Was just wondering which is faster, a subreport or dlookup. I've got a report with either 5 subreports or lots of dlookups. The subreports generally have anywhere from 5 to 12...
2
by: jonvan20 | last post by:
I have been having trouble with a simple Dlookup command that was Reccommended to me by a nice fellow named Vic, On the other hand I have statements like this that wont run they give me a run time...
3
reginaldmerritt
by: reginaldmerritt | last post by:
I'm using Dlookup to search a table for the first record it comes across that has a date >= the date i specifiy. e.g. formateddate = format(Me.SelectedDate,"mmddyy") VarX = DLookup("",...
23
by: dkotula | last post by:
Hello, I have a DB with linked tables to ODBC, and queries based on them. I have a form with 3 cascading combo boxes and tabs containing subforms. Along with the combo boxes on the main form I have...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.