Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2005, 01:42 PM
Authorized User
 
Join Date: Jun 2003
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reset text box value on new record

Hi All

I have an unbound text box that I fill with an on click event,with data from the data base, is there a way to fill this each time I change record, I can't seem to get it to work.

What I have is a course and people on the course, what the code does is do a trip to the database, get all the email addresses of the people on the course and concatenates them. (don't ask why - partner wants it), but I can only get it to work with the on click of a button, not automatically each time i move record.

Hope yo ucan understand

Andy Green

UPDATE

I'm now using the mousewhell event to reset it, which works ok, but not if the record selectors are used.
 
Old October 24th, 2005, 01:46 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

Andy,

Have you tried the on current event? Put the code that you have behind the button click, and put it on the on current event.

Kevin

dartcoach
 
Old October 24th, 2005, 02:11 PM
Authorized User
 
Join Date: Jun 2003
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you

Works a treat, think I tried nearly every other one.

Andy

 
Old October 24th, 2005, 02:13 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

Andy,

Glad I could help.

Kevin

dartcoach





Similar Threads
Thread Thread Starter Forum Replies Last Post
Grab Values From List Box into Text Box phungleon VB How-To 2 June 19th, 2008 10:33 PM
Count in combo box(display results in text box) mboyisis Access 4 April 4th, 2008 07:08 AM
Get last record and display in an Text Box hewstone999 Access VBA 1 March 18th, 2008 06:48 AM
record the time a text box is updated techsp Access 2 August 2nd, 2005 09:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.