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

Dlook Up against a query

Hi all,

I have the below code but cannot get it to work, missing operator ?
Expand|Select|Wrap|Line Numbers
  1. GroupOwner1 = DLookup("GroupOwner", "tbl_GroupOwners_Master", "Group Mapping = ???")
  2.  
the problem I have is where I have the ????, I want this to refer to a column in a query called GroupMapping, is this possible. I want to open the query and call the function which in turn looks at the data in GroupMapping and returns the group owner from the tbl_GroupOwners_Master ? Any help will be greatly appreciated

Thanks
Nigel
Feb 11 '10 #1
2 1769
Actually all,

I have written the beow in a select query but it errors, banging my head against the wall, does anyone have any ideas please ?

GroupOwner: DLookUp("[GroupOwner]","[tbl_GroupOwners_Master]","[Group Mapping] =" & Nz([GroupMapping],0))

I have two tables in my select query "table A that contains [GroupMapping] and tbl_GroupOwners_Master.

Thanks
Nigel
Feb 11 '10 #2
nico5038
3,080 Expert 2GB
The only problem I can see is when the [GroupMapping] is a text field. The code for that would be:
Expand|Select|Wrap|Line Numbers
  1. DLookUp("[GroupOwner]","[tbl_GroupOwners_Master]","[Group Mapping] ='" & Nz([GroupMapping],0) & "'" )
  2.  
as it requires surroundung quotes.

Nic;o)
Feb 14 '10 #3

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

Similar topics

1
by: Mike Whalen | last post by:
Hi, I am trying to help out someone who wants to create a custom query. Right now, he has two querys against a 2000+ database of contacts. The first query shows everything. The second query...
4
by: Laura | last post by:
Here's the situation: I'm trying to use an update query to copy data from one row to another. Here is the situation: I have 5 companies that are linked to each other. I need to show all 5...
6
by: a Khan | last post by:
I am getting error, RUN TIME ERROR 13, type mismatch I have 2 tables. products and tblUpdates. My form frmProductUpdate is assosiated with tblUpdates.I am trying to update quantity on hand. can...
6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
4
by: charliej2001 | last post by:
This is my first post on groups and id like to say that already its helped me out loads, but can't quite find what im looking for now I have 3 tables storing information about people; Main, Temp...
3
by: wjreichard | last post by:
OK ... I am using UPS Worldship that issues an ODBC query to my MS2K server ... Worldship can query either a table or a view and retreive shipping info for a supplied orderid. I need to create a...
21
by: Tarscher | last post by:
Hi all, I have events containing attendees (events has many attendees). The attendee table tells whether a user will attend the event or not. I want to build a query that returns all the...
0
by: Smigger | last post by:
Hi, I'm working on a small database to mail out a .xls to a number of users which works well, however, I want to vary the number of users that this form is mailed out to. Currently I'm dealing...
15
by: Widge | last post by:
Hi, I wondered if you could help me with an issue I'm having. Currently I have a rebate calculation that is running off two tables: 1) A list of suppliers and the rebate %ages relevant to them...
10
atksamy
by: atksamy | last post by:
Hi, I am not sure how clear i can be in my question. I have a table full of queries which i am running agaianst another table full of records. consider i have a query in table like select *...
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:
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...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.