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_Versi on
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
5 1397 Rabbit 12,516
Recognized Expert Moderator MVP
You have to use: - 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.
You have to use: - 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?
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.
Great - got it to work
Thanks!
Rabbit 12,516
Recognized Expert Moderator MVP Sign in to post your reply or Sign up for a free account.
Similar topics |
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 Groups - call
them A to E. I'd like to generate a further automatic reference number based
on something like Group/Unique ID so when I create a new record Access
creates the Unique ID & I then enter in the group and then Access combines
the two...
|
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 shows equipment inventory at b
OriginalVAL= query that extracts original $ amount from INV table based on matching EquipmentID seleced in C (currency)(listbox)(unbound).
BTA = query that calculates total amount for all $ transactions for...
|
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 50 fields into
several smaller tables, is there any other way to enter the data on the
single data entry screen other than having several subforms with the
individual tables as their recordsource?
|
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 is a Judge Table (information about judges)
judgeID = autonumber key
|
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 has numerous tables in the 200
column range, with several thousand rows of data. A consulting review prior
to my involvement stressed the wasted space and database speed as the major
impetus for normalization. Although the db actually works fairly...
| |
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 me "The data
has been changed. Another user edited this record and saved the
changes before you attempted to save your changes. Re-edit the
record."
This does not always happen. And yes, I can re-edit the quantity text
|
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 a db of scientific article citations and data extracted from the papers. When I first made this db I knew nothing of normalization, and that has been a MAJOR pain, as you can well imagine. I have worked to get this normalized and I have just one...
|
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 controls and a command button. I am trying to have this code on 'On Click' Event of the button to insert the data into a table (which has an autonumber PK)
Dim sSQL As String
sSQL = " INSERT INTO tbl_ScribalMain " & _
"(CompName,...
|
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, Mem, RC, Trans_Type. These are the basic item descriptions.
I then have 5 other fields: Add (yes/no), MRR (yes/no), Qty, Unit_Price, Item_Note that come into play when the user chooses which stock item is going to be part of the transaction. User...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 we have to send another system
| |