Solved

Textbox .... event trigger / capture preliminary data before textbox info has been commited

Posted on 2013-10-24
2
401 Views
Last Modified: 2013-10-25
Hi.

I am using Office 365  Microsoft Access (continuous form)

I have a textbox in the header section situated exactly above the related Access data field.

When that textbox has focus...............  When a user presses a key,   then I would like to detect this in some way.  My code needs to know what that textbox looks like at that moment so that I can do dynamic filtering on the related field.

My question.  How do I capture the current state of that textbox when the user has made a change to the textbox whilst still in the "edit mode".
0
Comment
Question by:peispud
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 39599257
try using the Change event of the textbox

private sub text0_change()
dim str as string
str = str & me.text0.text

msgbox str  ' to see the content of the textbox text0

end sub
0
 

Author Closing Comment

by:peispud
ID: 39600191
Perfect!   Thank you.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
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 retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

706 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

14 Experts available now in Live!

Get 1:1 Help Now