Тёмный
No video :(

Performing a Double Lookup in Microsoft Access Requiring Multiple Criteria 

Computer Learning Zone
Подписаться 236 тыс.
Просмотров 9 тыс.
50% 1

Опубликовано:

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@navisalomi
@navisalomi Год назад
Domain functions (Dlookup, dcount, dmax, dsum, etc) are actually offshoots of SQL queries. So, the way I write my Dlookup is this: =DLOOKUP("CreditLimit", "Customer", "State= ' " & State & " ' " & " AND City= ' " & City & " ' ") If this is unpacked it results in something like: SELECT CreditLimit FROM Customer WHERE State ='Buffalo' AND State = 'NY'. Classic SQL. Once you mimick SQL, writing the multiple criteria should be a breeze. Single quote is more readable for the domain functions. Thanks Richard for your valuable contents always.
@599CD
@599CD Год назад
Excellent point. A lot of people have brought this up. I actually have a video coming out on why I don't like using single quotes ' in my Access databases. Stay tuned.
@Aavalos106
@Aavalos106 Год назад
Brilliant. Working on a project to have access do a monstrous amount of calculations that we do in Excel. The reason was, no one knew how to do the lookup from one table to the other because the parent table didn't have a value for all in the child, so Access was culling down the child table to just values that are in both tables. So now we can do the calculations in Access and just export the values to Excel.
@599CD
@599CD Год назад
Awesome
@stanTrX
@stanTrX 6 месяцев назад
Thanks. Using dlookup in query was required in my case as my form was continuos form and using dlookup in such structure slowed down my form even more than query. Didnt use join in query as it caused my query unupdateble.
@599CD
@599CD 6 месяцев назад
Yeah that'll happen
@shahramahmadzadeh5285
@shahramahmadzadeh5285 Год назад
Thank You
@599CD
@599CD Год назад
You're welcome
@dbdata9836
@dbdata9836 Год назад
10/10
@599CD
@599CD Год назад
thx
@user-kj4wv6sn4h
@user-kj4wv6sn4h Год назад
I cant get this to work where the first criteria is a date and the second is an ID field. What should the syntax be for that senario ?
@599CD
@599CD Год назад
599cd.com/QQ
@mathmagics8212
@mathmagics8212 Год назад
Nice video, but as u said i done this work in quarry and its slow vvvv slow
@599CD
@599CD Год назад
Yep
@ryanw1906
@ryanw1906 Год назад
I like to use single quotes because multiple double quotes (or triple plus when concatenating) turn me cross eyed. DLookup("CreditLimit", "CustomerT", "City = '" & [City] & "' AND State = '" & [State] & "'") Or DLookup("CreditLimit", "CustomerT", "City = 'Buffalo' AND State = 'NY' ") Or to avoid that all together I made a function that returns a string wrapped in single quotes: Dlookup("CreditLimit", "CustomerT", "City = " & qt(City) & " AND State = " & qt(state))
@599CD
@599CD Год назад
Excellent point. A lot of people have brought this up. I actually have a video coming out on why I don't like using single quotes ' in my Access databases... and with a function like you have. Stay tuned.
@ryanw1906
@ryanw1906 Год назад
@@599CD Looking forward to it!
@599CD
@599CD Год назад
It's scheduled for Wednesday. Members get early access: 599cd.com/DDQnotSQ
@ssdusd
@ssdusd Год назад
Can you show it by query plz
@599CD
@599CD Год назад
It's almost exactly the same. Instead of =DLookup... you want MyField:DLookup... but again, I don't like using D-functions in queries. VERY slow.
Далее
Text to Speech in Microsoft Access
6:58
Просмотров 2,2 тыс.
How to Use DLookup in Microsoft Access
15:48
Просмотров 19 тыс.
ОБЗОР ПОДАРКОВ 🎁 | WICSUR #shorts
00:55
How to Use the Lookup Wizard in Microsoft Access 2016
14:52
Microsoft Access A to Z: Designing Table Relationships
10:40
ОБЗОР ПОДАРКОВ 🎁 | WICSUR #shorts
00:55