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

Dlookup or Join Advice on Forms

I was wondering what method would be more appropriate for the following scenario.

I have a form that allows a user to enter 1001 into a text box.
Once enter is hit, would it be better to use a Dlookup to Switch that 1001 into it's corresponding value on another table... Or use a Join.

Thanks
Oct 18 '07 #1
4 1718
NeoPa
32,556 Expert Mod 16PB
You have (accidentally) posted this question in the Access Articles section. This is NOT an article.
I'm moving this to the main Access questions forum.

ADMIN.
Oct 18 '07 #2
NeoPa
32,556 Expert Mod 16PB
I was wondering what method would be more appropriate for the following scenario.

I have a form that allows a user to enter 1001 into a text box.
Once enter is hit, would it be better to use a Dlookup to Switch that 1001 into it's corresponding value on another table... Or use a Join.

Thanks
Do you even want a TextBox?
If you're looking for a value from a table surely a ComboBox would be a better method?

For more help you NEED to post some information.
Oct 18 '07 #3
Do you even want a TextBox?
If you're looking for a value from a table surely a ComboBox would be a better method?

For more help you NEED to post some information.

Sorry About accidently posting it in the Article Section.


What I currently have is:
Me!error_value = DLookup("[error_value]", "[errors]", "error_id='" & Me!error_id & "'")

in the After Update event procedure of the error_id field.

So once someone scans in a number - the error value field is autoupdated.

This fixed my problem pretty much. I also removed the Tab Stop from the Err0r_value field.

Thanks again
Oct 18 '07 #4
NeoPa
32,556 Expert Mod 16PB
No worries. And thanks for sharing your solution.
I still feel a ComboBox with all the valid values in it would make more sense for this, but your solution certainly does the trick too (so why change huh).
Oct 18 '07 #5

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

Similar topics

11
by: MLH | last post by:
DLookup("", "tblPreliminaryVINs", "=Forms!frmVINODO!SerialNum") is giving me a Type Mismatch error. That's confusing to me and I don't know how to circumvent it. The field in...
8
by: MLH | last post by:
The following SQL returns PRECISELY what I want: SELECT TOP 1 tblCorrespondence.CorrespID, tblOutboundTypes.OTypDescription, tblCorrespondence.OutDate, tblCorrespondence.VehicleJobID,...
2
by: boyleyc | last post by:
Hi all the following code works perfectly well. Basically it populates a series of check boxes on my form, depending on whether dlookup finds an associated record. The problem i have is that...
3
by: MattieG | last post by:
Hi Im trying to do a DLookup on the following. I have a form field called StartDate and i want to find a price from table where Forms!Formname!StartDate BETWEEN Start2 and End2. I just cant...
3
by: OlyOil | last post by:
I have two tables one with a bill of materials and one with the inventory quantities. The bill of materials table contains part numbers that would be found in the inventory table, and I am trying...
3
by: hrreece | last post by:
I am trying to use the Dlookup expression in a macro to pull the value from the "Price" field in the following query. The query works fine and the Dlookup function did as well until I added a new...
30
by: DH22 | last post by:
Access 03 I'm currently having an issue using Dlookup when trying to reference a query (criteria syntax) Currently I have 1 table, which is L_Emps (which contains Employee_ID as my key...
3
by: Kunal Desale | last post by:
Hello, I am migrating access queries to SQL Server 2005 Queries. My Access Query Is: SELECT qtrade.intordreftrim AS Expr1, qtrade.extordreftrim AS Expr2, qtrade.intinvreftrim AS Expr3,...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.