473,408 Members | 1,857 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,408 software developers and data experts.

Save the result of DLookup funcion in a table

Hi,
I an using DLookup in a unbound text box and retrieving a correct value as a result. At the same time I want to save this result in other control source field in same form.
Please assist me.

Thanks
Oct 17 '14 #1
10 2307
twinnyfo
3,653 Expert Mod 2GB
Expand|Select|Wrap|Line Numbers
  1. Me.TextBox1 = Me.TextBox2
Oct 17 '14 #2
Thanks but it didn't work. I want to save in a control source field not in text box.
Please help
Oct 17 '14 #3
twinnyfo
3,653 Expert Mod 2GB
The text box must be bound to the field in the table.
Oct 17 '14 #4
i don,t understand. So sorry for being so childish. Can you explain it please? Thanks
Oct 17 '14 #5
Please some help me. I will be very thankful to you.
Oct 17 '14 #6
twinnyfo
3,653 Expert Mod 2GB
Please explain what it is that you need help with. Having a form with text controls bound to a table is basic DB design. I'm not sure how simpler I can explain it.

I'm not sure I understand what it is that you want to do.

Please explain in greater detail.
Oct 17 '14 #7
I have a form based on query. On form i am retrieving data from another table using DLookup in a unbound text box. So i want to save the result of DLookup in another field on same form and that is actually a record source of a main table.
Please take out me from this problem.
Thanks
Oct 17 '14 #8
twinnyfo
3,653 Expert Mod 2GB
So i want to save the result of DLookup in another field on same form and that is actually a record source of a main table.
First, you can't have one form that has the record source of both a query and another table. You must find another way to do that. You could use a subform, but it sounds like your are trying to do something very easy in a very difficult way.

How are the table and query related? Do they have a matching index that you can use to find the proper field in the table?

What is the purpose of these actions, so we can understand what you are trying to do and offer different options/solutions that would fit your needs.
Oct 17 '14 #9
i have a table (main).Query is created on main table and form is created on query.I am using a control source field(Consignee's ID) to retrieve 4 different commissions from another table (Consignees).And I need one commission of them that must go to a new field(commission) in the form for further calculations.
I am using DLookup function in text boxes to retrieve 4 different commissions.
So please assist me.
Thanks
Oct 18 '14 #10
twinnyfo
3,653 Expert Mod 2GB
Irslan,

Please explain where the value is to be saved--not "in a table". You need to explain where you query is coming from (you said table MAIN), but where is the result of your lookup supposed to be saved. I can't help you if you don't provide the basic information of what you are trying to do.
Oct 19 '14 #11

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

Similar topics

2
by: maceo | last post by:
I have a script that will print out the results of a table and make a calculation of a total of one of the columns. See example: <?php /* Database connection */...
7
by: Larry | last post by:
Hi, I have unbelievable problems just to save a record! I make an input to a record in a subform, which has a temporary table as its recordsource. When I am done, and want to save the...
5
by: James Mitchelhill | last post by:
Sorry for the clunky subject line - I have a feeling that not knowing the proper terms for this is part of my problem. I'm trying to write a class that analyses some data. I only want it to do...
3
by: kevin.vaughan | last post by:
Hello Everybody and Everymind, I am using Access 2003 on an XP network. The code below activates from a command button on a form. It selects data from a table and then displays it in a cell on...
3
by: azzi2000 | last post by:
This should be rather simple. I have a query using different link tables and 2 parameters. The query works perfect. However I need to export or save the result in an Access table in order to...
2
by: tvnaidu | last post by:
Help needed in how to save event Logs across reboots. I have eventlogs are saved in database table, after I reboot the board, I lost all previous logs, again event log table contains new logs only, I...
4
by: malcolmk | last post by:
Hi, I am planning a test request, process and report system. It goes like this, a customer requests a set of tests to be carried out on a particular item; the tests may be medical or mechanical or...
1
by: michael3426 | last post by:
I managed to figure out how to pull 3 fields from a query into a combo box. However, I want to save those results into a separate table. For instance, I have a query that pulls together the...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.