Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / April 2008

Tip: Looking for answers? Try searching our database.

show single entry table in a textbox field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
The Dude - 08 Apr 2008 12:51 GMT
Hi guys,

I have a table that has only one line and one column (plus autonumber ID). I
know it sux but it's the only way I found to make a euro/dollar exchange rate
that user can change - I just need this one value.

I have managed to make a form to modify the rate (a simple SQL command), but
my problem is to show this value in another form, referring to another table.
Basically if I want to show it by an SQL command, I need a listbox - but
then I cannot change the display format. All I need is a simple text box but
then I can't add an SQL command.
I know the .clone command but if I'm correct it's just for forms, and I am
not sure I want to add a subform for such a small amount of information...

Anything I'm missing? lol
Brendan Reynolds - 08 Apr 2008 14:13 GMT
> Hi guys,
>
[quoted text clipped - 16 lines]
>
> Anything I'm missing? lol

You could use the DLookup() function. Set the control source property of a
text box to an expression such as ...

=DLookup("YourFieldName", "YourTableName")

See "DLookup Method" in the help files for more information.

Signature

Brendan Reynolds

The Dude - 09 Apr 2008 09:07 GMT
Excellent :)
That's exactly what I was looking for!

Thanks Brendan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.