For background on this project, you can view this on-going thread here:
thread702-1610544
For this specific question I have - On my main form for events, you add events. There is a subform for inviting people to an event. This subform is continious. Each continuous record has a command button to open a pop-up form where 1 or more people can be set as sending the invite to that person (invite sent on behalf of).
What I would like to do is show as a locked textbox in the pop-up form header. It would have a dlookup of the last name and first name of contact that the user click on the command button for.
When a user clicks the command button, they are brought to the pop-up form, but the subform on the main screen is showing a list of invited people. It will be easy to forget which person you just clicked on, so I want to use a dlookup on a locked field in the pop-up form header, to show that person's name. It will re-inforce or remind them which invite they are choosing account managers that are inviting them.
Events -
PKEvent
txtEventTitle
Event Invite -
PKEventInviteID
FKEvent (looks up to tblevent)
FKContact (looks up to contact table with txtLname and txtFname etc)
etc
Event Invite OBO (on behalf of)
PKEventInviteOBOID
FKEventInvite (event invite id)
FKAM (account manager id)
So when I click from one event invite in the subform I open a pop-up to show just the records for that event invite that exist in the obo table.
I can then add more.
I tried this for a dlookup, but it just gives me #Name
I know I am explaining this badly, but hopefully someone can read through my madness. I get so far into the problem that it is impossible to explain it. Not to mention I am not good at summarizing a problem.
Thanks for any help, if you get what I am trying to do.
misscrf
It is never too late to become what you could have been ~ George Eliot
thread702-1610544
For this specific question I have - On my main form for events, you add events. There is a subform for inviting people to an event. This subform is continious. Each continuous record has a command button to open a pop-up form where 1 or more people can be set as sending the invite to that person (invite sent on behalf of).
What I would like to do is show as a locked textbox in the pop-up form header. It would have a dlookup of the last name and first name of contact that the user click on the command button for.
When a user clicks the command button, they are brought to the pop-up form, but the subform on the main screen is showing a list of invited people. It will be easy to forget which person you just clicked on, so I want to use a dlookup on a locked field in the pop-up form header, to show that person's name. It will re-inforce or remind them which invite they are choosing account managers that are inviting them.
Events -
PKEvent
txtEventTitle
Event Invite -
PKEventInviteID
FKEvent (looks up to tblevent)
FKContact (looks up to contact table with txtLname and txtFname etc)
etc
Event Invite OBO (on behalf of)
PKEventInviteOBOID
FKEventInvite (event invite id)
FKAM (account manager id)
So when I click from one event invite in the subform I open a pop-up to show just the records for that event invite that exist in the obo table.
I can then add more.
I tried this for a dlookup, but it just gives me #Name
Code:
=DLookUp([txtLName],"tblcontact","tblcontact.PKContactdID = " & Forms!frmEvent!frmSubEventInvite.FKContact & " AND Forms!frmEventInviteOBO.FKEventInvite = Forms!frmEvent!frmSubEventInvite.PKEventInviteID ")
I know I am explaining this badly, but hopefully someone can read through my madness. I get so far into the problem that it is impossible to explain it. Not to mention I am not good at summarizing a problem.
Thanks for any help, if you get what I am trying to do.
misscrf
It is never too late to become what you could have been ~ George Eliot