473,386 Members | 1,810 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 vs FIND For Values as Field names

3
i read the thread entitled "Convert Field Value String to Actual Field in Expression"

It appeared that the final solutions got moore complex not less complex

MY PROBLEM IS:
1. get a value from one table as a string "C"
2. lookup the value of a field in a TABLE2 "CD"
where the field name = the value of field in TABLE1

I CAN GET THIS USING DLOOkUP, BUT NOT BY FIND METHOD
example:
TABLE1 - 3 FIELDS (50 parts, 1 code and 1 item per part)
(part as string)+(code as string,3) + (item as string, 255)
99 choices for code are (HD01->HD99)
ex: c = value from TABLE1 (if [PART] - "AN" then c = "HD05")

TABLE2 - 100 FIELDS (1 ID, 99 dates) FOR SPECIFIC PERSON
(ID as long) + (HD01) .. (HD99)

ex CD = DLookup("" & C & "", "", "ID = " & PATID)
(find record using findfirst and get value from field "HD05")
Returns CD = #02/03/2006#

I am under impression that using DLOOKUP is slower than using the FIND Method.
If so, what I want is:

TABLE2.FINDFIRST ("ID = " & PATID)
C= "TABLE2" & C
RETURNS "C = TABLE2!HD05"
CD = C
CD = #02/03/2006#

What I get is
CD = "TABLE2!HD05 "



Any Ideas?
Oct 22 '06 #1
1 2417
PEB
1,418 Expert 1GB
Hi
It's like a double post, but the content is different from your previous one...

And the question is more clear!

Definitely the Dagregate functions are the worst thing you can use! They lock your tables seek poorly and in network environnement are really poor...

If you use them in Append query for exemple and you do a sum of the previous values of the introduced till the current record records it will be faulty! It will be faulty either if you don't use transactions!

Those functions can create only problems in multiuser environnement!
:)
Oct 27 '06 #2

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...
2
by: Sue | last post by:
I sent an e-mail below and got a responese but i still have the #error message in the subject below: Can someone help me: questions and replies are separted by ----- -------My Questions: I have...
6
by: LSemos | last post by:
I am trying to lookup phone numbers in a separate table based on the name in the current Tab control tblContacts has the fields: Name, Phone, Fax, and Email In my Form's Tab control, I have...
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: BobM | last post by:
i read the thread entitled "Convert Field Value String to Actual Field in Expression" It appeared that the final solutions got moore complex not less complex MY PROBLEM IS: 1. get a value from...
2
by: sfrvn | last post by:
I am embarrassed to say I cannot make this work. Recently upgraded to Access 2003, but do not know if that part of problem (AKA 'syntax change'). Would someone be kind enough to lead me by the...
1
by: Deac | last post by:
I was asked to help a friend with a database and am in over my head! The customer table has been in place and they have used a paper copy of the pricing table to make manual changes and...
5
by: hrreece | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.