Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Is it possible to set up control tips using DLookup?

Posted on 2008-09-30
5
Medium Priority
?
230 Views
Last Modified: 2013-11-28
H experts,

I would like to set up my control tip text as a dlookup as there are many buttons within my application that use the same text and I do not want to duplicate the work.

Any ideas?

Thanks.
Terry
0
Comment
Question by:TerenceHewett
  • 4
5 Comments
 
LVL 75
ID: 22606690
No can do.  It can only be a String expression, 255 characters max,

mx
0
 
LVL 75
ID: 22606700
If you put something like this:

=Dlookup("xx","yy")

it will simply display

=Dlookup("xx","yy")

mx
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 2000 total points
ID: 22606725
However, you could I suppose set the Control Tip Text on the fly in the On Load event ... getting the text via a DLookup () ...

Like so:

Private Sub Form_Load()
    Me.Text1.ControlTipText = DLookup("SomeField", "SomeTable")
End Sub

mx
0
 

Author Comment

by:TerenceHewett
ID: 22606900
MX,  thanks very much.  I think your last post is exactly what I was looking for. Will try and then start a new post ifI still have issues.
Best regards,
Terry
0
 
LVL 75
ID: 22607030
you are welcome.

mx
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

971 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