Aug 21, 2001 #1 List Technical User Apr 22, 2004 5 PE Hi, All, I created "add new" buttom in the form that works in the main form. But It is not work in the sub form. Any help? Thank you a lot. Joe
Hi, All, I created "add new" buttom in the form that works in the main form. But It is not work in the sub form. Any help? Thank you a lot. Joe
Aug 21, 2001 #2 LonnieJohnson Programmer Apr 16, 2001 2,628 US Did you set the focus to the subform before you did the command to add a record to it? Just a thought... ljprodev@yahoo.com ProDev, MS Access Applications B-) http://www.galaxymall.com/software/PRODEV Upvote 0 Downvote
Did you set the focus to the subform before you did the command to add a record to it? Just a thought... ljprodev@yahoo.com ProDev, MS Access Applications B-) http://www.galaxymall.com/software/PRODEV
Aug 21, 2001 #3 Aivars Programmer May 4, 2001 687 LV private sub cmdAddNewOnSubForm DoCmd.GoToRecord acDataForm, _ Me.MySubForm.Form.Name, acNewRec end sub Aivars Upvote 0 Downvote
private sub cmdAddNewOnSubForm DoCmd.GoToRecord acDataForm, _ Me.MySubForm.Form.Name, acNewRec end sub Aivars
Aug 21, 2001 Thread starter #4 List Technical User Apr 22, 2004 5 PE Hi, LonnieJohnson, I didn't set focus, but I have "autoNumber" text box. Thanks again. Joe Upvote 0 Downvote
Aug 21, 2001 #5 LonnieJohnson Programmer Apr 16, 2001 2,628 US Sorry, but I have to ask this...Do you have a Child/Master link set up between the two forms? ljprodev@yahoo.com ProDev, MS Access Applications B-) http://www.galaxymall.com/software/PRODEV Upvote 0 Downvote
Sorry, but I have to ask this...Do you have a Child/Master link set up between the two forms? ljprodev@yahoo.com ProDev, MS Access Applications B-) http://www.galaxymall.com/software/PRODEV
Aug 21, 2001 Thread starter #6 List Technical User Apr 22, 2004 5 PE Hi, LonnieJohnson, Yes, I have a child/Master links. My form status is: Main form -> subform -> another subfrm, that means the main form including subform, subform including another subform. All forms have child/master link. My form works fine for all search combox, but only "add new" buttom not work in subform. Any more ideas. Many Thanks. Joe Upvote 0 Downvote
Hi, LonnieJohnson, Yes, I have a child/Master links. My form status is: Main form -> subform -> another subfrm, that means the main form including subform, subform including another subform. All forms have child/master link. My form works fine for all search combox, but only "add new" buttom not work in subform. Any more ideas. Many Thanks. Joe
Aug 21, 2001 #7 Aivars Programmer May 4, 2001 687 LV Requery the subform after adding record on Main form. (Before you requery the subform you may save record on Main form) Aivars Upvote 0 Downvote
Requery the subform after adding record on Main form. (Before you requery the subform you may save record on Main form) Aivars
Aug 21, 2001 #8 LonnieJohnson Programmer Apr 16, 2001 2,628 US If want to mail me a copy of your forms, tables and/or queries I can take a look at it. ljprodev@yahoo.com ProDev, MS Access Applications B-) http://www.galaxymall.com/software/PRODEV Upvote 0 Downvote
If want to mail me a copy of your forms, tables and/or queries I can take a look at it. ljprodev@yahoo.com ProDev, MS Access Applications B-) http://www.galaxymall.com/software/PRODEV
Aug 21, 2001 Thread starter #9 List Technical User Apr 22, 2004 5 PE Thanks all. I already got it. Joe Upvote 0 Downvote