Microsoft Access DLOOKUP Without Programming

  Рет қаралды 186,007

Computer Learning Zone

Computer Learning Zone

Күн бұрын

Пікірлер: 138
@samirhabib4877
@samirhabib4877 Жыл бұрын
This video has been uploade 10 years ago but it is still very useful. Thanks Richard! Greetings from Azerbaijan Republic.
@599CD
@599CD Жыл бұрын
Oh yeah Dlookup hasn't changed in Forever
@johnson6048
@johnson6048 10 жыл бұрын
Prior to seeing this I had watched several other tutorials on how to use the DLookup function. None of them were as simple to follow (or comprehensive) as this. The act of showing all parts involved (source table, field names, etc.) and your explanation of their use in the syntax for DLookup proved to be a true learning experience. Light Bulb! Tried it in my form and it worked perfectly.
@599CD
@599CD 2 жыл бұрын
Sweet
@katetranscribes
@katetranscribes 8 жыл бұрын
This is one of the most useful (and best explained) tutorials out there, and I've seen quite a few! Thank you so much!
@599CD
@599CD 3 жыл бұрын
Welcome!
@travissimonsphoto
@travissimonsphoto 9 жыл бұрын
You are the best teacher for Access!
@599CD
@599CD 2 жыл бұрын
Thanks
@Jojosmith342
@Jojosmith342 Жыл бұрын
this is simple yet powerful. thumbs up with much thanks for the best teacher Richard
@J35u5M0d3
@J35u5M0d3 11 жыл бұрын
You sir are a life saver! I have been watching all of your videos trying to teach myself access. I have created a basic backend in school with mysql and MSsql but have never made a front end. THANK YOU!
@599CD
@599CD 11 жыл бұрын
Referring to values on subforms gets tricky. You can't use Forms!FormName!FieldName. You have to use Forms!ParentFormName!SubFormName.Form!FieldName.
@rajeshkumarseetharaman
@rajeshkumarseetharaman 10 жыл бұрын
Fantastic. Thanks saved my life while in 2003 version needed to put the following way =DLookUp("[WorkPhone]","EmployeeT","EmployeeID='" & [Combobox]&"'")
@599CD
@599CD 2 жыл бұрын
Welcome
@dftdept001
@dftdept001 6 жыл бұрын
Very direct, concise, and clear to me. Kudos.
@599CD
@599CD 3 жыл бұрын
Thank you.
@fabianvillegas6313
@fabianvillegas6313 3 жыл бұрын
Thanks for all my friend, perfect for to explain VLOOKUP functions, I finished my work with your video, Im very happy
@599CD
@599CD 3 жыл бұрын
Glad it helped!
@Theburqan
@Theburqan 10 жыл бұрын
Thanks for this video, but i still have the error #Name? , I checked the Names of the source table and everything.
@599CD
@599CD 2 жыл бұрын
Double-check
@mauioreo7176
@mauioreo7176 11 жыл бұрын
Hi Richard, How did you come up with those tables you showed? Is there a toturial video on youtube how to make that? I am actually going to make an employee records. Please help. Cheers!
@RochesterAreaBuilder
@RochesterAreaBuilder 3 жыл бұрын
Thank you! I kept running into instructions to use this formula but they weren't indicating where it went.
@599CD
@599CD 3 жыл бұрын
Glad it helped!
@michellguzelgul4267
@michellguzelgul4267 4 жыл бұрын
Impressive video. Well put together, exactly what I needed, no nonsense. Subscribed.
@599CD
@599CD 4 жыл бұрын
Thank you!
@stephaniewhitley1613
@stephaniewhitley1613 2 жыл бұрын
Hi Richard -- Thanks for the video. This isn't quite going to help unless I can store the value. If the text box is bound would the value be stored? Again thanks!
@599CD
@599CD 2 жыл бұрын
You'll need 599cd.com/AfterUpdate
@histographicevents771
@histographicevents771 5 жыл бұрын
This is very clear and straight forward thank you and keep it up!
@599CD
@599CD 3 жыл бұрын
My pleasure.
@mrsbillypenaflor
@mrsbillypenaflor 11 жыл бұрын
Hi Richard. Thanks for this video it's been very helpful. Can you confirm that the returned value of the DLOOKUP function will be saved in the table or as part of the record where the form is actually based on? Or does it just display the returned value? Thanks.
@599CD
@599CD 2 жыл бұрын
If you still need it: 599cd.com/Ask
@599CD
@599CD 11 жыл бұрын
Since DLOOKUP is a more advanced topic, I assume you know how to build tables. If not, see my Beginner Level 1 class that's on my Channel.
@ravinderbirdi5783
@ravinderbirdi5783 11 жыл бұрын
Thank u so much for all the videos. They are very helpful in mastering material!!
@hashimam2u
@hashimam2u 11 жыл бұрын
Thank you for the video and i was trying this Dlookup and its not working some error is =RefName
@nicoled9765
@nicoled9765 7 жыл бұрын
Can you suggest on how I would create a query and report in Access of all employee work schedules for the week? I was hoping to make the report look like a table with the days of the week across the top/columns and hour increments along the left side/rows and all the employee names scheduled for those times and days are in the table's center. Thank you!
@599CD
@599CD 3 жыл бұрын
If you still need help with this, feel free to submit your questions at 599cd.com/TH. Members get priority.
@jacekkowalczyk6649
@jacekkowalczyk6649 8 жыл бұрын
Hi Richard. Thank you for this video. I will ask the same question as one of coleage below 'Does returned value of the DLOOKUP function will be saved in the table or as part of the record where the form is actually based on? Or does it just display the returned value? Can you kindly help ?
@599CD
@599CD 3 жыл бұрын
It just displays the value unless you use an event like AfterUpdate to store it. 599cd.com/AfterUpdate
@tuhinchakraborty5750
@tuhinchakraborty5750 3 жыл бұрын
Hi, I have a query where the balance gets updated for a particular HSN Code. I have a form with subform from where the sales entry form gets updated. I have created an unbound field in the subform to get the balance for the selected HSN code in subform from the query. I am using DlookUp function to perform this task. But the values are not getting populated in that field. Could you please help me.
@599CD
@599CD 3 жыл бұрын
Feel free to submit your question at 599cd.com/TH
@randypaul7563
@randypaul7563 8 жыл бұрын
HiIn your example, the EmployeeID ia a number - could it be alpha numeric like AAA100?I am having trouble using your vlookup example with an alpha numeric iD.Regards
@599CD
@599CD 3 жыл бұрын
You can use any value you like. I like AutoNumbers. 599cd.com/AutoNumber
@VictorJimenez-bh4mn
@VictorJimenez-bh4mn 4 жыл бұрын
You are the best simple and clear
@599CD
@599CD 4 жыл бұрын
Thanks
@Chatrunner1967
@Chatrunner1967 6 жыл бұрын
Hi, could you please explain how you created the layout from this page, I like it a lot!
@599CD
@599CD 3 жыл бұрын
Watch 599cd.com/Blank
@tutsecret499
@tutsecret499 3 жыл бұрын
The result of this lookup is just visible on the fly, or this phone is stored in this box in the form? I have data in calculated field in query. I want this calculated result to be stored in the table, instead of being just visible in the query. The only way I can see this result restored in the table is I highlight the field column, copy and paste the result on the field that belongs to the table. There might be a way to avoid this routine. Maybe a macro or a vba to do the copy the field with the data from the query and paste on the field that belongs to the table.
@599CD
@599CD 3 жыл бұрын
DLookup results are not stored. If you want to store them, you'll need an event like 599cd.com/AfterUpdate
@armandogarcia6564
@armandogarcia6564 4 жыл бұрын
Does DLookup work the same way for combo boxes...will it lookup multiple values from a table and show them in the drop down?
@599CD
@599CD 4 жыл бұрын
Nope. DLOOKUP will only return one value at a time. You'd need a loop to look up multiple values, and DLOOKUP probably isn't the best tool for that job.
@armandogarcia6564
@armandogarcia6564 4 жыл бұрын
@@599CD Thank you very much Richard. I actually ended up using 1 line of VBA code/SQL statement to populate the drop down options for my combo box.....Something Like this: Me.FormField.RowSource = "SELECT* FROM MyTable WHERE TableTypeID = " & Me.TypeIDFormField I really appreciate your youtube videos and your style of teaching by the way, thank you very much. Where do you teach?
@jay55patel
@jay55patel 10 жыл бұрын
One million time thank you. You are the best. i am learning lot from you
@599CD
@599CD 2 жыл бұрын
Welcome
@linhanwen2219
@linhanwen2219 10 жыл бұрын
I realize this video is using access2013, for those using 2010 do ammend your Dlookup to: =DLookUp("WorkPhone","EmployeeT","EmployeeID='" & [Combobox]&"'") There should be a apostrophe after the "EmployeeID=" and do take note that your data base name field should't have spacing. Just sharing :D been troubleshooting my mistake for a few hours.
@arturssolomencevs3700
@arturssolomencevs3700 10 жыл бұрын
Thanks ;D
@poohpoohgirlsj
@poohpoohgirlsj 8 жыл бұрын
+Lin Hanwen THANL YOU!!!!
@oltroman1
@oltroman1 7 жыл бұрын
Lin Hanwen Thanks you :)
@dindomendoza2634
@dindomendoza2634 4 жыл бұрын
Thank you for sharing....
@cynthiageorge6278
@cynthiageorge6278 3 жыл бұрын
And 7 years later, you are still the hero! Thanks!
@tutsecret499
@tutsecret499 6 жыл бұрын
I have a table CONTACTS where I input patients, street, city, county when I choose city from the combo box, I want to feed the neighbor column COUNTY as Orange. The table outside my CONTACTS tables has 3 columns: IDCity, City, County (=Orange). So do I have to create another field besides the Cities column to do the lookup feature.
@599CD
@599CD 3 жыл бұрын
Not if you only want to DISPLAY it.
@jayrey311
@jayrey311 8 жыл бұрын
Hello. Please accept my apologies if my inquiry is in the wrong place. I would like to know how i can lookup existing data (computer sn#) in a table and somehow create a combobox that shows if the computer serialnumber was already used or assigned to a component (dockingstation sn#). If the computer sn# isnt used, it will auto populate in the field (compsnnumber) and then i will manually enter the sn of the docking station in another field (DSSerialNumber). I tried querying the computer sn# with dsserialnumber but somehow the query isnt populating the dsserialnumber info into the combolookupbox. its only showing in the dsserialnumber field. any help is greatly appreciated.
@599CD
@599CD 3 жыл бұрын
I'm sure it's possible. Probably need to program an event. 599cd.com/AfterUpdate
@genius53
@genius53 8 жыл бұрын
Excellent tutorial! very well explained. Thank you!
@599CD
@599CD 3 жыл бұрын
Welcome
@SirEmbrooos
@SirEmbrooos 3 жыл бұрын
Pse help me compare too fields each with different data eg labtests and other payment companies IDs to lookup the costs which are different also accding to the Ids
@599CD
@599CD 3 жыл бұрын
I'm sorry, but you'll have to be a little more precise.
@wink1275
@wink1275 3 жыл бұрын
This is a great tutorial, BUT I can't get it to work. I am using Access 2007 - 2016 file format, would this be why?
@599CD
@599CD 3 жыл бұрын
Nope. DLOOKUP works wayyyyyy back in Access 2000 and before. Start over from the top.
@slhangen
@slhangen 11 жыл бұрын
How did you get the rep name to display when the field called for salesRepID?
@599CD
@599CD 11 жыл бұрын
It's a combo box. The first (hidden) column contains the SalesRepID. The second (first visible) column shows the name. See the COMBO BOX TUTORIAL that I left a link for in the video description.
@louie115
@louie115 5 жыл бұрын
awesome video...awesome teacher! thanks for the lesson!
@599CD
@599CD 3 жыл бұрын
My pleasure
@MrMeLaX
@MrMeLaX 6 жыл бұрын
Thanks for your video. But how do I remove the error message when "Sales Rep" is not chosen?
@599CD
@599CD 3 жыл бұрын
Gotta have one. If you don't want one, then don't make it required.
@Iicc7767
@Iicc7767 9 жыл бұрын
Please help! I want t create a form in access 07 , which is everytime the form is open, the order box fill in with a new auto increase number . thank you!
@599CD
@599CD 2 жыл бұрын
Yeah, that's called an Autonumber. 599cd.com/Autonumber
@FireObama2012
@FireObama2012 10 жыл бұрын
I'm looking to calculate commission pay at one rate during the weekdays and at another rate during weekends and this based on the total labor sold during a given period. I've managed to figure out how to take my imputed date and turn it into a "spelled out" day of the week in a query but the next step is to use a formula that takes into consideration the day of the week to determine when to apply the weekday rate or the weekend rate in order to calculate total commission earned for the pay period.
@599CD
@599CD 2 жыл бұрын
599cd.com/ask
@glens1975
@glens1975 9 жыл бұрын
can someone advise on an issue I am having I am using =DLookUp("CostPrice","ProductT","ProductName=" & [ProductName]) whereas in a form I am wanting to enter into the text box named CostPrice the value from the field CostPrice in the table ProductT from the field ProductName eg I have a dropdown list for productname so i select an option, i want it to briong in the cost price with both productname and costprice being within the productT table i keep getting an error and am not sure why. Is it like excel where your lookup vale needs to be to the left of the field to grab ???
@599CD
@599CD 3 жыл бұрын
Quotes around text criteria
@bbmak0
@bbmak0 11 жыл бұрын
Can you do a multi dlookup criteria?
@linhanwen2219
@linhanwen2219 10 жыл бұрын
Yes you can, for example: "Name='" & [Combo39] & "'AND Month='" & [Combo49] & "'"
@NarminJBNarmeenbizzle
@NarminJBNarmeenbizzle 3 жыл бұрын
sir it is show to me it is wrong the message it show is :the expression you entered contains invalid syntax how can I fix it
@599CD
@599CD 3 жыл бұрын
It's impossible for me to tell what you did wrong if I can't see... what you did wrong.
@NarminJBNarmeenbizzle
@NarminJBNarmeenbizzle 3 жыл бұрын
@@599CD how can i get to contact with u to send you photo
@NarminJBNarmeenbizzle
@NarminJBNarmeenbizzle 3 жыл бұрын
@@599CD this is code that I wrote =DLookUp("workPhone"," EmployeeT","Employeeid=" & [salesRepCombo])
@NarminJBNarmeenbizzle
@NarminJBNarmeenbizzle 3 жыл бұрын
@@599CD I sent to u an E-mail message sir
@husseinfarah4452
@husseinfarah4452 8 жыл бұрын
Hello I did the same steps =DLookUp("CellPhoneNo","TblEmployee","EmployeeID=" & [EmployeeID]) ... but it not showing the phone number till i have to click inside the box then numbers appears
@599CD
@599CD 3 жыл бұрын
Click inside what box?
@TheFryPo
@TheFryPo 5 жыл бұрын
Thank you this is a huge help !
@599CD
@599CD 3 жыл бұрын
My pleasure.
@EfrenCorona
@EfrenCorona 4 жыл бұрын
I've recreated everything even as shown (fields, tables, combo box names), and it's still coming back with #Name? error. There's something you're missing that you may not have disclaimed.
@599CD
@599CD 4 жыл бұрын
Nope. It's pretty straightforward. I've been teaching this example in my classes for 20 years now, and as you can see, that video was posted 7 years ago and nobody else has complained. The most common error is that you've misspelled something.
@priyas9751
@priyas9751 8 жыл бұрын
I'm having some trouble with this. I'm trying to use DLookup to get the Title of a drawing based on the Drawing Number (of data type text), which is selected from a combo box. In the Title field on my form, this is my formula: DLookUp("Drawing Title", "Drawings","Drawing Number="&cboDrawingNumber) This formula gives me an error. Can anyone help me with this?
@599CD
@599CD 3 жыл бұрын
Spaces in your field names will get you every time. [Drawing Title]
@javadrajabi9639
@javadrajabi9639 11 жыл бұрын
hi sir I want to used dlookup in subform but it's not correct result -i want used dlookup in main form but refer to subform datasheet please help me java
@michaelfluss3750
@michaelfluss3750 3 жыл бұрын
Wow i like your Tipps. Greedings from germany.
@599CD
@599CD 3 жыл бұрын
Thanks. Cheers from Florida.
@theanimalqueen8610
@theanimalqueen8610 10 жыл бұрын
Can someone help me? I've watched this video, I've searched the web for other advice and even tried to adjust accordingly with some of the comments below with no success. I am using Access 2007. Here is how i have it currently entered. =DLookUp("Tool Diameter inches","Tooling","Tool="" &[Tool Combo]&") Any help is greatly appreciated why I still have hair. lol
@599CD
@599CD 10 жыл бұрын
Scott Melton If your Tool combo box holds a NUMBER value, you don't need the extra quotes. Plus, I recommend square brackets around any field name that has spaces in it (which you should try to avoid): =DLookUp("[Tool Diameter inches]","Tooling","Tool=" & [Tool Combo])
@theanimalqueen8610
@theanimalqueen8610 10 жыл бұрын
599CD Computer Training I greatly appreciate your help. First the Tool Combo is not a number value, but the values I'm trying to pull in are numbers. Now, I copy and pasted the formula you typed in above and as soon as I tried to enter I got a message stating the expression entered contains invalid syntax. Please help!
@theanimalqueen8610
@theanimalqueen8610 10 жыл бұрын
Scott Melton Maybe it helps but I created a new form and pasted your formula back in the control source of a text box. No syntax error this time but I still get #Name? in the field.
@MalikBabarHasan60855
@MalikBabarHasan60855 3 жыл бұрын
Excellent, amazing. Thanks
@599CD
@599CD 3 жыл бұрын
Thank you too!
@dindomendoza2634
@dindomendoza2634 4 жыл бұрын
Very helpful thank you...
@599CD
@599CD 4 жыл бұрын
You're welcome!
@Zzgr19
@Zzgr19 3 жыл бұрын
Thank you for all the tips. Won't VLOOKUP work too? Kinda easier to use those imo 😅
@599CD
@599CD 3 жыл бұрын
Yep. If this were Excel. But it's not. It's Access. Access doesn't have a VLOOKUP. Although I do show you how to create something similar: 599cd.com/VLookupInAccess
@firmanhabibi7970
@firmanhabibi7970 4 жыл бұрын
I WANT TO PAY TO THE COURSE BUT I DONT HAVE A CREDIT CARD, IS THAT A WAY TO PAY WITHOUT CREDIT CARD TO UNLOCK SEVERAL VIDEO'S??
@599CD
@599CD 4 жыл бұрын
I accept other payment methods on my web site: 599cd.com/THMember
@تاجالمحتاج
@تاجالمحتاج 2 жыл бұрын
Thank u it's on time
@599CD
@599CD 2 жыл бұрын
Welcome
@Rojin.Marzooki
@Rojin.Marzooki Жыл бұрын
Great very helpful
@599CD
@599CD 11 ай бұрын
Glad it was helpful!
@imrancapital8419
@imrancapital8419 8 жыл бұрын
Richard, if I ever get an opportunity to meet you.. I will salute you in person... You are simply the best..
@599CD
@599CD 3 жыл бұрын
Sounds good. :)
@sekkaali
@sekkaali 5 жыл бұрын
Useful Lesson
@599CD
@599CD 3 жыл бұрын
Thanks.
@sanilkumarv575
@sanilkumarv575 3 жыл бұрын
SIr I tried with LOOKUP fn. But it not working
@599CD
@599CD 3 жыл бұрын
If at first you don't succeed... :)
@elizabethofori1165
@elizabethofori1165 3 жыл бұрын
Thanks a million
@599CD
@599CD 3 жыл бұрын
You're welcome
@asaburrahman8947
@asaburrahman8947 8 жыл бұрын
Nice Job, Thanks
@599CD
@599CD 3 жыл бұрын
You're welcome
@stephonnechien6144
@stephonnechien6144 7 жыл бұрын
my textbox endedup showing #name? as well... but i thought i followed everything
@599CD
@599CD 3 жыл бұрын
Try again. Double-check your spelling.
@innovation7273
@innovation7273 5 жыл бұрын
HOW CAN LOOK UP ATTACHMENT FILE
@599CD
@599CD 4 жыл бұрын
What do you mean by "look up?"
@armandogarcia6564
@armandogarcia6564 4 жыл бұрын
You are awesome
@599CD
@599CD 4 жыл бұрын
Thanks!
@chanchaldas6229
@chanchaldas6229 3 жыл бұрын
Thank you...
@599CD
@599CD 3 жыл бұрын
Welcome
@danielleung264
@danielleung264 3 жыл бұрын
valuable
@599CD
@599CD 3 жыл бұрын
Thanks
@qahtaniinvoices428
@qahtaniinvoices428 4 жыл бұрын
SORRY SIR THIS FUNCTION NOT WORKING PLEASE
@599CD
@599CD 4 жыл бұрын
Double-check all of your spelling. What result are you getting? Error message? I need more info. This video has been online for 7 years and has over 140,000 views, so it's got to be something you did incorrectly. I've been teaching this same exact function for 20+ years.
Using DLookup with Multiple Criteria in Microsoft Access
16:07
Computer Learning Zone
Рет қаралды 3,6 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
How to Add Simple User-Level Security to Microsoft Access Databases
26:44
Computer Learning Zone
Рет қаралды 45 М.
Microsoft Access Multi-Field Search Form 2.0 New and Improved Features!
50:26
Computer Learning Zone
Рет қаралды 122 М.
MS Access - Queries Part 1: Basic queries
19:10
Mr Long Education - IT & CAT
Рет қаралды 147 М.
How to Use DLookup in Microsoft Access
15:48
Sean MacKenzie Data Engineering
Рет қаралды 21 М.
Microsoft Access Customer Database (CRM) MS Access Customer Template - Free Download
26:40
How To Create A Keyword Search in Access 2013 🎓
24:54
Programming Made EZ
Рет қаралды 344 М.
How to Create Search by Date Range: MS Access
18:38
T Golden Eye
Рет қаралды 162 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН