?
Solved

Expression builder in access 2007

Posted on 2008-06-12
4
Medium Priority
?
378 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 140 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 140 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

850 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