473,473 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Save the result of DLookup funcion in a table

40 New Member
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 2314
twinnyfo
3,653 Recognized Expert Moderator Specialist
Expand|Select|Wrap|Line Numbers
  1. Me.TextBox1 = Me.TextBox2
Oct 17 '14 #2
irslan rafique
40 New Member
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 Recognized Expert Moderator Specialist
The text box must be bound to the field in the table.
Oct 17 '14 #4
irslan rafique
40 New Member
i don,t understand. So sorry for being so childish. Can you explain it please? Thanks
Oct 17 '14 #5
irslan rafique
40 New Member
Please some help me. I will be very thankful to you.
Oct 17 '14 #6
twinnyfo
3,653 Recognized Expert Moderator Specialist
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
irslan rafique
40 New Member
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 Recognized Expert Moderator Specialist
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
irslan rafique
40 New Member
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 Recognized Expert Moderator Specialist
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
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...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.