Solved

Expression builder in access 2007

Posted on 2008-06-12
4
368 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now