Solved

Expression builder in access 2007

Posted on 2008-06-12
4
370 Views
Last Modified: 2008-06-12
hi i have a db with a table named NotesTable and 1 field in that table called Notes....pretty simple

i have a form called ProF and it's control source is a different table
i want to put a text box on the ProF form that is linked to the Notes field in NotesTable while all the other controls on that form pull data from the other table

i went into expression builder and entered [NotesTable]![Notes] as the control source but i must be missing some syntax because it doesn't work

can someone steer me in the right direction?

thanks

0
Comment
Question by:RunToTheHills
  • 2
4 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 35 total points
ID: 21771472
It doesn't work because you can't do that.

To get data from a different table to the recordsource you can use a Dlookup() function.

How do you know which record to get the data from in NotesTable?
0
 

Author Comment

by:RunToTheHills
ID: 21771867
NotesTable has just 1 field "Notes", I want the text box on the form to be able to write a new record to the field and also navigate thru all the records in that Notes field

i'll do some googling on Dlookup and any other help you can give i will appreciate

0
 
LVL 44

Assisted Solution

by:GRayL
GRayL earned 35 total points
ID: 21772188
You can bind your form1 to table1, and on form1 create a cboNotes combobox that derives its contents from Notestable.  In the design view, insert a combobox, rightclick, select properties, data tab, table/query type -table/query, in table/query:

SELECT NotesTable.Notes from NotesTable;

set bound column 1

select format tab

number columns 1

column widths - what ever you need in inches.
0
 
LVL 44

Expert Comment

by:GRayL
ID: 21772515
Just curious, combo or DLookup?
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question