473,503 Members | 4,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Include data from unbound table

121 New Member
This seems like such a simple question, and I thought I knew how to do it, but I can't get it to work.

I have a form that is bound to a table 'ETL" and users can enter data into that form.
I want at the top of that form to include teh build number a value form another table "Version-Table"

I put a text box in with a link to a query (SWB - DLU Version Number) that finds the maximum number in that version table.

I put the control source as:

=[SWB - DLU Version Number]!MaxOfDLU_Version

But when I open the form all i get is a "Name?" in the box.


I also have a report I am creating and trying to do a similar thing, and it gives me the same problem.

Any help would be greatly appreciated.


Thanks
Apr 3 '07 #1
5 1388
Rabbit
12,516 Recognized Expert Moderator MVP
You have to use:
Expand|Select|Wrap|Line Numbers
  1. DLookup("[Field Name]", "[Table/Query Name]", "Where Clause")
The "Where Clause" is a filter criteria built like the SQL Where clause but without the WHERE.
Apr 3 '07 #2
JHNielson
121 New Member
You have to use:
Expand|Select|Wrap|Line Numbers
  1. DLookup("[Field Name]", "[Table/Query Name]", "Where Clause")
The "Where Clause" is a filter criteria built like the SQL Where clause but without the WHERE.
Thanks for the help. I just have another question...

So for he Where "Clause" do I need to include the query information or can i just call on the query I already have defined?

Also, would I do the same thing for the report?
Apr 3 '07 #3
Rabbit
12,516 Recognized Expert Moderator MVP
You can't call a query for the Where clause. It's there to specify which record you want to return. If there's only one record then there's no problem. Otherwise you have to tell it which record to return by saying something like "[ID] = 4".

Yes, it would be the same for the report.
Apr 3 '07 #4
JHNielson
121 New Member
Great - got it to work

Thanks!
Apr 3 '07 #5
Rabbit
12,516 Recognized Expert Moderator MVP
Not a problem.
Apr 3 '07 #6

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

Similar topics

2
4124
by: Iain Miller | last post by:
Struggling a bit here & would be grateful for any help. I have a table which has a list of people in it. Each person has a unique ID automatically allocated by Access but also belongs to one of 5...
2
2599
by: Scot Niklos via AccessMonster.com | last post by:
Sorry if it is way to much information but I'm trying to cover all bases Access 97 A= combobox that queries Distributor B= combobox that limits customers by distributor in a C= combobox that...
6
2966
by: Wayne | last post by:
I am designing a database which needs approximately 50 fields per record. The database user requires data entry to be via a single screen. If I follow good database design practice and split the...
9
2324
by: Susan Bricker | last post by:
Greetings. I am having trouble populating text data that represents data in my table. Here's the setup: There is a People Table (name, address, phone, ...) peopleID = autonumber key There...
4
1916
by: Bill Stock | last post by:
The few times in the past that I've loaded unbound data, I've tended to cheat and use temp tables (not really unbound) or use code for small datasets. I'm currently involved in a project that...
7
16340
by: PW | last post by:
Hi, I have a form with unbound fields on it. The user selects a record from a recordset and I populate the unbound fields. When I try to change the unbound quantity text box, Access 2003 tells...
4
3295
theaybaras
by: theaybaras | last post by:
Hi everyone, You've all been such a huge help to me since joining, and I'd just like to take a second to let you know how much I appreciate it! That said, I have another supplication! ;) I have...
1
2945
by: almeister9 | last post by:
I am hoping someone can help me as I've done this sort of thing before with no problems. I am using Access 2003 SP2 on WinXP prof SP2 I have an unbound form (single form view) with 18 unbound text...
7
3640
by: HSXWillH | last post by:
I am designing an inventory system and am stuck on a potential problem. I have a table of Stock_Catalog containing the following fields: Stock_ID (random autonumber), Full_Desc, Serial, Auto,...
0
7070
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
7267
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,...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.