473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Dlookup values in form not saved in table

I have a form, Master List Temp, in Access 2003 that uses the Dlookup command to pull values from another table, Address Master. The user types in a person's home phone number in the HomePhone field on the form and the command looks up information in the Address Master table pertaining to the First Name, Last Name, etc. that match the HomePhone number criteria This allows the user to see if information for the account already exists.

The Control Source property for the FirstName field in the "Master List Temp" form follows:
Expand|Select|Wrap|Line Numbers
  1. =DLookUp("[FirstName]","Address Master","[HomePhone] =  [Form]![HomePhone]")
I have two questions.

1. When I leave the "HomePhone" number field on the "Master List Temp" form the only way the other fields that have the Dlookup command as the Control Source to show the lookup data is after I press the F9 key. Isn't there a way I can automate this so that as soon as I tab pass the "HomePhone" number control the other Dlookup fields update?

2. When I exit the "Master List Temp" form, the values that received information via the Dlookup command are not found in the "Master List" table on which the form is based. Information in fields that did not use the Dlookup command for the control source are found in the table. What should I do?

Thanks,

Roger
Nov 8 '07 #1
5 4770
NeoPa
32,556 Expert Mod 16PB
  1. Expand|Select|Wrap|Line Numbers
    1. Call Me.Requery
    after the field has been updated.
  2. Any fields that are required to store their data into the underlying recordsource need to be bound.
Nov 9 '07 #2
I run an update query when exiting the Form and it writes to the tables
Oct 25 '11 #3
NeoPa
32,556 Expert Mod 16PB
I can't imagine that ever being required in a properly designed form Paul. You may want to reconsider how you do things.
Oct 25 '11 #4
I sure have tried but the users need a "View" to see what was entered in the past and also an entry from for new information. So when a new record is entered in the "entry" form all the fields are populated in the tables on Exit. This history is retained for "Viewing" later. That's just the way our business works. Thanks
Oct 26 '11 #5
NeoPa
32,556 Expert Mod 16PB
If you're writing to tables other than those included in the record source of the form then my last comment doesn't apply. It was only about those who design unbound forms then apply the data to the table(s) separately using SQL (or any other approach).
Oct 26 '11 #6

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

Similar topics

2
by: sherah | last post by:
I am trying to create a procedure that has values are entered into a table that based on the value entered will programatically decide weather or not the Yes/No should be checked. I am trying to...
6
by: JLM | last post by:
What am I missing here? I have a form where I enter a "Class Code". This value corresponds to what sits in table "class code descriptions" along with the "title" of each "class code." Key...
4
by: Joe | last post by:
I have a table with an sequence (PK) and 2 fields, employee id and status id. Each employee can have multiple records in this table due to multiple status ids assigned. I have a multi-list box...
1
by: mstery | last post by:
I have a report generated via an ID selection made in a dropdown on a form. The report filters by an on click event in a preview report button on the form. Everything in the report, including...
8
by: Christine Henderson | last post by:
I have a problem using the above function in the following simplified circumstance: In the lookup table called "Klms Travelled" I have 3 fields, eg: Receiver Name Receiver Suburb ...
1
by: TerryD | last post by:
I have a form that has an unbound text field that I am using DLookup in to display the values from a Temp Table. My program calls for me pushing a button to print a report, which runs a query first...
1
by: dmeyr | last post by:
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....
1
by: Constantine AI | last post by:
Hi i am trying to get User input if data does not exist within a DLOOKUP table. I have gotten it to work for one record but not multiple, i have tried to incorporate my code into a loop procedure but...
15
by: rleepac | last post by:
This is a little complicated but I'll do my best to explain. In my db I have a table called L_AgeCorrection which has the following fields: Age, Sex, Frequency, AgeValue This is a table used to...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.