By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,827 Members | 2,177 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,827 IT Pros & Developers. It's quick & easy.

Populate a Table based on Dlookup values in a Form

P: 1
Hello,
I am new to Access and am having difficulty with a Dlookup function. I have a form that I wish to autopopulate 10 fields with values based on two criteria which are also fields on the form. The user would enter the two criteria in the form and the ten fields autopopulate. To achieve this, I used a Dlookup function in the Control Source of the fields I wished to autopopulate.

These Dlookups work perfectly except that my table does not populate with the values retrieved in the Dlookups. The information that I am retrieving thorugh the Dlookups is unique data that I need to add into my existing table, not duplicative in nature.

Is there another way to execute the Dlookup so that the table will be updated, or is there a different method that should be used to achieve this?

Any direction on this would be greatly appreciated!! - Thanks!
Nov 15 '06 #1
Share this Question
Share on Google+
1 Reply


MMcCarthy
Expert Mod 10K+
P: 14,534
Are the 10 fields all in one table or based on a query. I don't know if the DLookup was the right function as I'm don't know the logic behind them.
Is your form bound to a table or query and are the 10 fields bound to the corresponding fields.

You will need to provide a lot more information starting with the above. Also check out the post at the top of the Access forum with POSTING GUIDELINES. This should help you to determine what you need to include.

Also try to give a concise explanation of the logic behind what you are trying to do. The more information you provide the better we'll be able to help you.

Hello,
I am new to Access and am having difficulty with a Dlookup function. I have a form that I wish to autopopulate 10 fields with values based on two criteria which are also fields on the form. The user would enter the two criteria in the form and the ten fields autopopulate. To achieve this, I used a Dlookup function in the Control Source of the fields I wished to autopopulate.

These Dlookups work perfectly except that my table does not populate with the values retrieved in the Dlookups. The information that I am retrieving thorugh the Dlookups is unique data that I need to add into my existing table, not duplicative in nature.

Is there another way to execute the Dlookup so that the table will be updated, or is there a different method that should be used to achieve this?

Any direction on this would be greatly appreciated!! - Thanks!
Nov 16 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.