Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Forms

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-15-2006, 04:41 AM
Novice
 
Join Date: Oct 2006
Posts: 7
henryclay
Default Navigation Code

I have a form with 1 subform. When I complete entering data on the form I goto the subform automatically. When I complete entering data on the subform I can click the navigation button for the next record and my subform and form are saved and I'm moved to the first record in the main form.

I would like to examine the code behind the navigation button that does this, so I can add a command button that does the same thing.

Is there a way to examine this code? Please Help!
Reply With Quote
  #2  
Old 11-15-2006, 06:00 AM
Novice
 
Join Date: Nov 2006
Location: Arlington Heights, IL
Posts: 7
ScottG
Default

If you add a button to a form using the Command Button Wizard and select the "Record Navigation" option. From here you choices of "Find Next", "Find Record" and "Go to First, Last, Next & Previous." Once you make the selection and add the button you can go into Properties/Events and view the code under the "Event Procedure." This may help. There is also a "GoTo Record" command you could look up in help.

Thanks,
ScottG
Reply With Quote
  #3  
Old 11-15-2006, 06:48 AM
Novice
 
Join Date: Oct 2006
Posts: 7
henryclay
Default No Luck

Quote:
Originally Posted by ScottG
If you add a button to a form using the Command Button Wizard and select the "Record Navigation" option. From here you choices of "Find Next", "Find Record" and "Go to First, Last, Next & Previous." Once you make the selection and add the button you can go into Properties/Events and view the code under the "Event Procedure." This may help. There is also a "GoTo Record" command you could look up in help.

Thanks,
ScottG
The command button has to be on the parent form for this to work and I can't get the focus back to the parent. I've tried putting the command button on the subform, but that doesn't work either.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Trouble? briancb2004 Access 0 10-08-2008 02:47 PM
Need help with code hoenheim Programming 9 09-11-2008 02:19 PM
Control navigation pane ohporter Access 0 05-27-2008 10:45 AM
Need Help Getting to Code Snuffles Programming 8 04-22-2008 03:25 PM
Problem with Code cujee75 Programming 0 03-09-2006 11:40 PM


All times are GMT -8. The time now is 02:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.