Re: #Name? displayed in Text Box
- From: Graham <Graham@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 7 Feb 2007 19:45:00 -0800
Hi Crystal
Sorry about the delay in getting back.
I've digested your combo-box approach and I'll be interested to have a play
with it.
Tom Wickerath came up with the solution to my problem - the form was linked
with code to a subform (data-sheet view) and the problem fields were not in
the SQL for the subform RecordSource.
Thanks
--
Graham
"strive4peace" wrote:
hidden combobox trick.
---
Hi Graham,
"practicality overrides theory"
I can relate to that
is this form used for input or just display?
One thing you have is a lot of LEFT JOINs... cannot you display
corresponding Names using the ole hidden combobox trick?
combobox:
Name --> ID_field
ControlSource --> ID_field
RowSource -->
SELECT ID_field, SomeName, field3
FROM Tablename
ORDER BY SomeName
Visible --> No (or Yes -- depends what you need)
now, you can make a calculated control for SomeName
controlSource --> =ID_field.column(1)
why do you have 2 age groups on this record instead of using a subform?
Warm Regards,
Crystal
*
(: have an awesome day :)
*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*
Graham wrote:
Thanks Crystal
I accept your comment about normalization.
While my experience with Access is limited, I am an experienced A/P who
prides himself on normalized design except that there are times when
practicality overrides theory.
Enough of the sermon - I realleally appreciate everyones help on this forum.
The way this application needs to function, I can't see how to achieve
results without having the similarly named fields with numeric
differentiation.
The SQL for RecordSource is
SELECT tEnrolment.*, [tEnrolment.ParticipantFName] & " " &
[tEnrolment.ParticipantLName] AS Participant, [tMstrProgramName.Description]
& " : " & [StartDate] AS Program, tMstrCultural.Description AS Cultural,
tMstrMaritalStatus.Description AS Marital, tMstrStaff.FirstName & " " &
tMstrStaff.LastName AS Staff, tMstrProgram.AgeGrp1ID, tMstrProgram.AgeGrp2ID
FROM (((tEnrolment LEFT JOIN (tMstrProgram LEFT JOIN tMstrProgramName ON
tMstrProgram.ProgNameID = tMstrProgramName.ProgNameID) ON
tEnrolment.ProgramID = tMstrProgram.ProgramID) LEFT JOIN tMstrCultural ON
tEnrolment.CulturalID = tMstrCultural.CulturalID) LEFT JOIN
tMstrMaritalStatus ON tEnrolment.MaritalStatusID =
tMstrMaritalStatus.MaritalStatusID) LEFT JOIN tMstrStaff ON
tEnrolment.StaffID = tMstrStaff.StaffID;
- Follow-Ups:
- Re: #Name? displayed in Text Box
- From: strive4peace
- Re: #Name? displayed in Text Box
- References:
- Re: #Name? displayed in Text Box
- From: strive4peace
- Re: #Name? displayed in Text Box
- From: Graham
- Re: #Name? displayed in Text Box
- From: strive4peace
- Re: #Name? displayed in Text Box
- From: Graham
- Re: #Name? displayed in Text Box
- From: strive4peace
- Re: #Name? displayed in Text Box
- Prev by Date: RE: listbox value...
- Next by Date: RE: subform textbox contro lsource string?
- Previous by thread: Re: #Name? displayed in Text Box
- Next by thread: Re: #Name? displayed in Text Box
- Index(es):
Relevant Pages
|