Progress2007
New member
- Local time
- Yesterday, 16:37
- Joined
- Jul 17, 2009
- Messages
- 2
Hello
I have created a form which has multiple tabs. Each tab containing control source from diffrent tables.
I want to assign form's Record source as a query so that when some one hits on save button the all data should be saved to respective tables.
Pleae tell me how can i write code for this. I am using these lines of code.
<code>
globalAddModeFlag = True
DoCmd.OpenForm "newform"
Forms!newform.RecordSource = l_strQuery
Forms!newform.Requery
Forms!newform.DataEntry = True
Forms!newform.AllowAdditions = True
DoCmd.GoToRecord , , acNewRec
Forms!newform.AllowAdditions = False
Forms!newform.butCancelSib.Visible = True
Forms!newPatientInfo.ChildFamilyProgram.Enabled = False
</code>
Please tell me how can i do this....
I have created a form which has multiple tabs. Each tab containing control source from diffrent tables.
I want to assign form's Record source as a query so that when some one hits on save button the all data should be saved to respective tables.
Pleae tell me how can i write code for this. I am using these lines of code.
<code>
globalAddModeFlag = True
DoCmd.OpenForm "newform"
Forms!newform.RecordSource = l_strQuery
Forms!newform.Requery
Forms!newform.DataEntry = True
Forms!newform.AllowAdditions = True
DoCmd.GoToRecord , , acNewRec
Forms!newform.AllowAdditions = False
Forms!newform.butCancelSib.Visible = True
Forms!newPatientInfo.ChildFamilyProgram.Enabled = False
</code>
Please tell me how can i do this....