There has got to be a better/more effiecent way of doing this....
On a form (frm1) - I have a command button. With this button I would like to be able to open another form (frm2). This form needs to "share record sources". The record sources are tables.
I'm tryin' to use 1 form instead of haveing multiple forms for each record source. I have searched, and can't seem to find something I can use for my application...
Below is the best my "2nd grade Access Education" can come up with... There has got to be a better way..!!
Can somebody break it down for me..!!!
Private Sub cmdbtn2_Click()
DoCmd.OpenForm "MultiWWReviewMap", acDesign, , , acFormPropertySettings, acHidden
Forms!MultiWWReviewMap.RecordSource = "MultiReviewMap"
DoCmd.OpenForm "MultiWWReviewMap", acNormal, , , , acWindowNormal
end sub
Like I said this way is working, and each time frm2 is closed it prompts for a save... because the record source has changed.... I would like to keep the record source "" on close...
Thanks in advance..!!
jw5107
On a form (frm1) - I have a command button. With this button I would like to be able to open another form (frm2). This form needs to "share record sources". The record sources are tables.
I'm tryin' to use 1 form instead of haveing multiple forms for each record source. I have searched, and can't seem to find something I can use for my application...
Below is the best my "2nd grade Access Education" can come up with... There has got to be a better way..!!
Can somebody break it down for me..!!!
Private Sub cmdbtn2_Click()
DoCmd.OpenForm "MultiWWReviewMap", acDesign, , , acFormPropertySettings, acHidden
Forms!MultiWWReviewMap.RecordSource = "MultiReviewMap"
DoCmd.OpenForm "MultiWWReviewMap", acNormal, , , , acWindowNormal
end sub
Like I said this way is working, and each time frm2 is closed it prompts for a save... because the record source has changed.... I would like to keep the record source "" on close...
Thanks in advance..!!
jw5107