AllExperts > Using MS Access 
Search      
Using MS Access
Volunteer
Answers to thousands of questions
 Home · More Using MS Access Questions · Answer Library  · Encyclopedia ·
More Using MS Access Answers
Question Library

Ask a question about Using MS Access
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Rob Henderson
Expertise
I can answer most MS Access design questions. I also welcome questions on database design and implementation and VBA programming questions. I also have expierence in application design for all the Office components (Excel, Outlook, etc).

 
   

You are here:  Experts > Computing/Technology > Business Software > Using MS Access > Change text box values as tab through datasheet.txt

Using MS Access - Change text box values as tab through datasheet.txt


Expert: Rob Henderson - 2/9/2005

Question
I put this code ...

DoCmd.RunCommand acCmdSaveRecord

in the On Current Event of the subform. No difference.

Answer
Putting the saverecord code in the current event will have no effect at all on what you're trying to do. Insert your look up code into the on Current event and see what happens.

To confirm;

You want to update three text boxes based on what field value is present in the subform record.

To do this you must have;

1. A saved record the main form can reference to pull back the data for the three boxes

2. Data that corresponds to the data you're retrieving - I.e. something to pull back

It seems to me when you have a saved record and have relevant data to pull back, using DLookUp for example will do exactly what you want - pull the relevant field back into the main form.

Your issue was around not being able to retireve the data from an unsaved record - hence the reason I said to save the record first.

rob  

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.