I have a form that, based on the selection from the Option Group in the main menu, is opened with one of 4 queries being the record source. I am able to do this, but I am also needing to carry over the values generated by the option group that are "Title" and "Mrk". Currently I am using...
Select Case Mrk
Case 1
docmd.OpenForm "DataEditSubform", acNormal, "Cycle1"
LookUp.SetFocus
Me.DataEditSubform.Form.RecordSource = "Cycle1"
Me.DataEditSubform!Title = "Current Cycle"
Me.DataEditSubform!Mrk = "1"
End Select
This is just a test code, the other three Cases will be the same with Recordsource, Title and Mrk being different.
Any help with this is greatly appreciated.
Thank you for your time and help in this matter.
Robert M
Select Case Mrk
Case 1
docmd.OpenForm "DataEditSubform", acNormal, "Cycle1"
LookUp.SetFocus
Me.DataEditSubform.Form.RecordSource = "Cycle1"
Me.DataEditSubform!Title = "Current Cycle"
Me.DataEditSubform!Mrk = "1"
End Select
This is just a test code, the other three Cases will be the same with Recordsource, Title and Mrk being different.
Any help with this is greatly appreciated.
Thank you for your time and help in this matter.
Robert M