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 / May 2008

Tip: Looking for answers? Try searching our database.

focus

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rml - 16 May 2008 23:00 GMT
I have a unbound text box and an image on a form.  When the text box is
filled out with "aaa" and you click the image, it unlocks some fields.

My problem is that when I'm in the box, then press the image it does not work.
When I move the cursur out of that box to another field and click the image
it works fine.  How can I make it move from the box when I click the image?  
Maybe some kind of focus.

I hope this makes sense.

Thanks.
Linq Adams - 17 May 2008 00:35 GMT
That'll do it! Just move focus to another field in the form. If the unbound
textbox is the only one that's unlocked when this occurs, place a new textbox
in the bottom left-hand corner of your form, reduce it it size to a dot, then
use this

Private Sub YourImage_Click()
If Me.YourTextBox = "aaa" Then
 AnyField.SetFocus
 "Unlock your fields here
End If
End Sub

Signature

There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

 
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.