Microsoft Access DLOOKUP Function

  Рет қаралды 218,268

Computer Learning Zone

Computer Learning Zone

Күн бұрын

Пікірлер: 95
@untij
@untij 14 жыл бұрын
this tutorial literally saved my life. well, not literally.
@montimial
@montimial 11 жыл бұрын
Thank you, this is the most useful DLookup guide on youtube , I got it immediately contrary to trying with some other tutorials ,this one is concise and to the point
@timboljermaine
@timboljermaine 13 жыл бұрын
5:20 i understand it now when you said the functions of each inside the dlookup! Great tutorial thanks!
@Shahdathlete
@Shahdathlete 14 жыл бұрын
you have done a wonderful job. you really are helping me out. so nice of you. thanks!
@jgposner
@jgposner 15 жыл бұрын
Where's my comment. I had more to say. May be it goes to you for approval. The continued part was that I also had to put a single quote after the = in the criteria part of the function. Thanks for the help. I subscribed to you and look forward to viewing more of your videos.
@599CD
@599CD 11 жыл бұрын
Your DLOOKUP statement looks correct. I assume you have a CustomerID on the current form/query. Make sure that value isn't NULL.
@599CD
@599CD 11 жыл бұрын
Assuming you don't have everything on one line as you posted it there, your code looks fine to me. I'd need to see your database to tell you for sure what the problem is.
@599CD
@599CD 11 жыл бұрын
How are you getting the data? You need some way to look it up - either a combo box or a text box that you type an ID of some kind into. When you do that, make a button that pulls in the rest of the data using DLOOKUP. Without knowing a lot more about exactly what you're trying to accomplish, it's difficult for me to help you further.
@bpekhoul
@bpekhoul 15 жыл бұрын
Richard, You made it so easy. Thanks for sharing. Bo
@autismworks5929
@autismworks5929 13 жыл бұрын
What is the 301 tutorial? Searched the entire chanenl and found nothing.
@thinnairr
@thinnairr 11 жыл бұрын
This helped a lot, even with access 2010
@599CD
@599CD 12 жыл бұрын
I don't understand what you're trying to do. Can you elaborate, please?
@599CD
@599CD 11 жыл бұрын
A "please" would be nice. I don't know your field data types, so you probably want either one of these: DLookUp("[Name]","CustomerT","T­INNo =" & [TINNo]) or DLookUp("[Name]","CustomerT","T­INNo=""" & [TINNo] & """") You're welcome.
@chiungkokuo
@chiungkokuo 12 жыл бұрын
Hi Ben, Thanks for the video. I copy the way did. It does not work. I do not know where go wrong. Would you please give me more tips. Thanks. Joan
@autismworks5929
@autismworks5929 13 жыл бұрын
How do I know what the identifier is for the field to use as the address= or city= for example?
@599CD
@599CD 11 жыл бұрын
Well, it looks like you spelled CUSTOMERS wrong, and if TINNo is a string value, you'll need to add some quotes. Plus I don't recommend using "NAME" as a field name. It's a reserved word in Access, so you'd need to enclose it in square brackets everywhere.
@conquer12
@conquer12 13 жыл бұрын
Hi, I need to know about de function select of access How can I use it? Please create a video, For example i want to link two table with the same titule,
@599CD
@599CD 11 жыл бұрын
If you're trying to DLOOKUP a value with TEXT as your criteria, you must enclose the criteria in quotes: MyAge = DLOOKUP("Age","CustomerT","CustomerName=""" & CustName & """")
@SirEmbrooos
@SirEmbrooos 3 жыл бұрын
Thanks but what if im looking a value depending of two different fields on a form like look up x where Y and z = y and z
@599CD
@599CD 3 жыл бұрын
Then use an AND condition in your criteria.
@markcarino1294
@markcarino1294 11 жыл бұрын
Nice tutorial sir, I learned alot :) I have a question sir, is DLOOKUP will function in image or attachment thanks
@MsDiDi159
@MsDiDi159 11 жыл бұрын
Dear Sir, does DLookup change the values of the address,City,State feilds in the CallService table ?? thanks
@jgposner
@jgposner 15 жыл бұрын
My first coment was lost so I am rewriting it. I followed you instructions substituting your info for mine and got "Syntax error (missing operator) in query expression 'Category=Black to normal'." I fixed it by putting single quotes around the value being looked up. It now reads like this. Issue = DLookup("Description", "Category", "Category='" & Category & "'") There is a singe quote after Category= The end of the line reads double quote, single quote, double quote, parentheses.
@iProRyan
@iProRyan 12 жыл бұрын
OMG THANK YOU SO MUCH!!! YOU HAVE LITERALLY SAVED MY LIFE! :D
@wawanst3334
@wawanst3334 3 жыл бұрын
Hi, sir thx for your sharing. But in my test that is just for numeric data type only, how about data text, thx
@599CD
@599CD 3 жыл бұрын
Good point. They're all treated differently. Text requires quotes, and dates have to be enclosed in # signs. Feel free to submit this at 599cd.com/TechHelp and maybe you'll get a video about it. :)
@599CD
@599CD 11 жыл бұрын
You're missing a single quote right after the equal sign: DLookup("InvoiceAmount", "InvoiceT", "InvoiceNumber='" & InvoiceNumber & "'") You can also try double-double quotes: DLookup("InvoiceAmount", "InvoiceT", "InvoiceNumber=""" & InvoiceNumber & """")
@steveo9211
@steveo9211 11 жыл бұрын
Hello Sir, Is there a way to auto populate data into a table with data from another table without making a combo box. I trying to create a database for rental equipment and I am trying to create a rental history table. I'm trying to make it where you don't have to input any data into this table. I couldn’t get the DLookup function to work, not even sure it is the right function for the job. Any input would be great. Thanks, Steve O.
@bwanampishi3586
@bwanampishi3586 11 жыл бұрын
Hi. Can I use DLOOKUP to grab data from a query field and have that data appear in a field in a table? The field in question is "UniqueID". UniqueID is a query field which I programmed telling the query to combine data from several existing table fields (DOB, race, sex, schoolID). I want this UniqueID to appear as a field in the table where DOB, race, sex and schoolID came from...
@jennylenesmith-drayton8677
@jennylenesmith-drayton8677 10 жыл бұрын
Amazing. I never knew u could do that. Thanks again
@599CD
@599CD 2 жыл бұрын
Welcome
@husy143
@husy143 11 жыл бұрын
im sorri sir, but i dont know what im going wrong here.. can i send u my database..?? so that u can check it for me please please
@Stache987
@Stache987 7 жыл бұрын
"Or more importantly, if the customer ...", is addressed where ? this would involve a multi-address lookup, say work location, summer home, subsequent address..
@599CD
@599CD 3 жыл бұрын
Sure. I recommend if you need multiple addresses to store them in a 2nd related table.
@Initial_Gain
@Initial_Gain 4 жыл бұрын
Strong sound 👍
@599CD
@599CD 3 жыл бұрын
WHAT? I CAN'T HEAR YOU!? LOL
@MrShagoon69
@MrShagoon69 11 жыл бұрын
I get the error "Variable not defined", any help on that?, I copied the exact code as you have in the video, changed according to my values Private Sub ProductName_AfterUpdate() Price = DLookup("UnitPrice", "Products", "ProductID =" & ProductID) End Sub
@KeebasLife
@KeebasLife 11 жыл бұрын
You my friend are the, BOMB! Great videos!
@sumana9864
@sumana9864 8 жыл бұрын
Hi Sir, I wanted to learn how to create voting forms for my ICT exam and was wondering if you could help me?
@599CD
@599CD 3 жыл бұрын
Probably kinda late now, eh?
@lonniekizer715
@lonniekizer715 8 жыл бұрын
Thank you, the text version listed below helped me use dlookup for the first time! But I am having trouble using the dlookup inside a nested if/then/else statement. My if then works fine, but returns blanks with anything other than "S/E" checkbox. =IIf([selfedge]=Yes,"S/E",IIf([KITCHEN]=Yes,DLookup("Kitchen","tblEdgeProfile","Edge=""" & [Edge] & """"),IIf([VANITY]=Yes,DLookup("Vanity","tblEdgeProfile","Edge=""" & [Edge] & """"),IIf([BAR]=Yes,DLookup("Bar","tblEdgeProfile","Edge=""" & [Edge] & """"),IIf([FLAT]=Yes,DLookup("flat","tblEdgeProfile","Edge=""" & [Edge] & """"),""))))) appreciate any thoughts here.
@599CD
@599CD 3 жыл бұрын
Simplify it.
@Chalbuilder2012
@Chalbuilder2012 12 жыл бұрын
Very userful. many thanks for that
@SPGaur-ps4jx
@SPGaur-ps4jx 6 жыл бұрын
Sir I have multiple data in access or excel. I want to create search button for lookup In all databases via enter multiple I'd and I want to receive multiple results in one file How can I do for above process plz suggest database is very big
@599CD
@599CD 3 жыл бұрын
Huh?
@599CD
@599CD 11 жыл бұрын
Thanks!
@3100745
@3100745 13 жыл бұрын
Thank you! It helps.
@dulalmandal8282
@dulalmandal8282 6 жыл бұрын
I can't Successfully run the formula with ms office 2016 . Do there any valid reason for office 2016 .Though I have no confidence with me.
@599CD
@599CD 6 жыл бұрын
I guarantee you that DLOOKUP has worked in every version of Access going back at least as far as I can remember, and of course in 2016 and 2019. It's one of the most popular functions.
@husy143
@husy143 11 жыл бұрын
Can u tell me what im doing wrong: =DLookUp("Name","CutomersT","TINNo =" & [TINNo])
@maicopr
@maicopr 13 жыл бұрын
Great tutorial! Thank you. Obrigado!
@ThousanWhite
@ThousanWhite 10 жыл бұрын
This didn't work for me when I tried to run it
@SadiqAliSheikh21
@SadiqAliSheikh21 12 жыл бұрын
Price=Dlookup("[Price]","PrdctTable", "[PrdctNme]=[forms]![urFormName]![PrdctNme]") Price is field wch u wnt 2 updte ie ur field from ur form Dlookup is funciton, [Price] is from tbl frm wher u wnt 2 cpy vlue to ProdctTbl is the name of the table from wher u wnt get the values to ur form [Prdct_Name] is the vlue from table wher u get values from [forms]![urformname]![PrdctName] is the feild which u selct prduct name from ur frm n the price field will be updtd like VLOOKUP IN EXCEL,
@randypaul7563
@randypaul7563 8 жыл бұрын
Hi - Can the ID being looked up be alpha numeric? Regards
@599CD
@599CD 3 жыл бұрын
Sure
@imodem
@imodem 11 жыл бұрын
good day sir, a little help if you may. ive created a table with 2 fields, namely: names and address. ive created another table with fields names, address1 and address2. i followed your video re dlookup, but failed to transfer the address to its new location from 1st table to 2nd table. here's the code: Private Sub Combo7_AfterUpdate() add = DLookup("add", "names", "add =" & add) End Sub
@jrvicenio
@jrvicenio 9 жыл бұрын
Error Message on this, Contact = DLookup("supcontact", "suppliersdata", "id=" & Supplier)
@599CD
@599CD 9 жыл бұрын
Jhun Vicenio Your syntax looks OK to me. What's the error message?
@ShefiyullaMI
@ShefiyullaMI 11 жыл бұрын
Thanks a lot dear
@wobbygongman
@wobbygongman 14 жыл бұрын
Thank you!
@antareing
@antareing 14 жыл бұрын
thanks for the great tutorial! :)
@moyomartin4501
@moyomartin4501 8 жыл бұрын
please i have a subform with a look up filed that displays a list of items with coressponding prices ,buh i want to filter it basing on another field value dynamically,is thea anyway i can do tht,if so plse can smeone help..thx in advance
@599CD
@599CD 3 жыл бұрын
I'm very sorry for taking so long to reply to your comment. I wasn't very good at keeping up with the comments 4 years ago, but I've been trying to make an effort to get back to everyone. If you still need help with this problem, please feel free to submit your question on my web site at 599cd.com/TH.
@parklange_fx3080
@parklange_fx3080 9 жыл бұрын
how to link Price and Item or Service...? Sorry with my grammar mistakes..I'm good in English...!!!!
@599CD
@599CD 2 жыл бұрын
599cd.com/Invoicing
@receipt.mug.shirtagsaludpr2752
@receipt.mug.shirtagsaludpr2752 9 жыл бұрын
What if my command in event procedure is debug what would i do? The message error is "Syntax error (missing operator) in query expression Outs = DLookup ("Outs", "Product", "Size=" & Size)
@599CD
@599CD 9 жыл бұрын
+receipt.mug.shirt agsalud printing The syntax of your statement looks fine to me. Of course, I can't tell the CONTEXT of it without knowing more.
@israelmcculley2927
@israelmcculley2927 7 жыл бұрын
I get the same error message. My code is this: Me.txtPhoneNumber = DLookup("PhoneNumber", "Customers", "ID=" & ID)
@599CD
@599CD 11 жыл бұрын
Nope. DLOOKUP does not change any values. It simply looks them up for you.
@inducto
@inducto 13 жыл бұрын
god bless you )) thnx for the help!
@TheRiaz54800
@TheRiaz54800 5 жыл бұрын
Sir What is meaning of & ?
@599CD
@599CD 3 жыл бұрын
You mean the ampersand? 599cd.com/Concatenation
@Theburqan
@Theburqan 9 жыл бұрын
It still not working with me, the error #name? still appears. i checked all the names of the feilds
@599CD
@599CD 2 жыл бұрын
Well, since you spelled "fields" wrong, I'll bet you spelled the field name wrong.
@husy143
@husy143 11 жыл бұрын
can u type the correct formula..!!!
@nonsookafor722
@nonsookafor722 9 жыл бұрын
how do i autocomplete using text box and not combo box
@599CD
@599CD 9 жыл бұрын
+nonso okafor You can't without programming
@RafaelDuarteGago
@RafaelDuarteGago 9 жыл бұрын
Perfect tuto mate, it helped me a lot :D Like + sub
@599CD
@599CD 2 жыл бұрын
My pleasure
@mostafas2604
@mostafas2604 10 жыл бұрын
شكرا thank you
@599CD
@599CD 2 жыл бұрын
Welcome
@brandyschuerman7160
@brandyschuerman7160 9 жыл бұрын
the volume is not working on your videos
@599CD
@599CD 2 жыл бұрын
It's working for the other 37 MILLION views I've received. Sure it's not your PC?
@tain3221
@tain3221 14 жыл бұрын
Thanks!!!!!!
@599CD
@599CD 11 жыл бұрын
You can send it to me here: 599CD(dot)COM/TechHelp
@kiranideal
@kiranideal 6 жыл бұрын
It only work for first record
@599CD
@599CD 3 жыл бұрын
DLookup only returns one record at a time.
@kostasdrosatos329
@kostasdrosatos329 11 жыл бұрын
still nothing ... :-(
@standman007
@standman007 3 жыл бұрын
That was easy
@599CD
@599CD 3 жыл бұрын
Indeed! :)
@RickyRisnandar
@RickyRisnandar 13 жыл бұрын
nice
@IskeSRB
@IskeSRB 10 жыл бұрын
Saviour!!!
@funniq
@funniq 12 жыл бұрын
Great tut... thanks
Microsoft Access Combo Box - Relational
6:54
Computer Learning Zone
Рет қаралды 98 М.
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 7 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 61 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,4 МЛН
How to Use DLookup in Microsoft Access
15:48
Sean MacKenzie Data Engineering
Рет қаралды 20 М.
Как сделать запросы в базе данных Microsoft Access 2016
12:43
Уроки по Microsoft Access
Рет қаралды 99 М.
DLookup Function Microsoft Access 2010 (cc)
9:40
TrainSignal is now Pluralsight
Рет қаралды 57 М.
Iif, If Then Else, and Select Case in MS Access
13:02
Sean MacKenzie Data Engineering
Рет қаралды 20 М.
Как создать ВЫЧИСЛЯЕМЫЕ запросы в базе Access
14:35
Уроки по Microsoft Access
Рет қаралды 170 М.
How to use Microsoft Access - Beginner Tutorial
31:07
Kevin Stratvert
Рет қаралды 3,2 МЛН
How to Add Simple User-Level Security to Microsoft Access Databases
26:44
Computer Learning Zone
Рет қаралды 38 М.
The Worst Programming Language Ever - Mark Rendle - NDC Oslo 2021
1:00:41
NDC Conferences
Рет қаралды 1,3 МЛН