Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 January 25th, 2005, 12:58 PM
Authorized User
 
Join Date: Dec 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Instant updating of table

Hi

I am a bit of a novice so bare with me. I have a form that uses as a recordsource a table of data. i have created a function that calculates a persons age. I have put the table into a record set looped until EOF and edited the teax code field so that the letter N will be output in the filed if age is under 16 else B if over 16. The update works fine but I cannot see it update instantly in form view ie I press the button that calls the function on the form cannot see anything happen yet if I go into the table I can see the figures have correctly input to the tabel. Any ideas?

Cheers

Cheers
Tony
__________________
Cheers
Tony
 
Old January 25th, 2005, 03:32 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I absolutely refuse to bare with you! I have my modesty, after all...

(Be glad to bear with you though...)

Try the .Requery method of the form.

The Requery method updates the data underlying a specified form, or a control that’s on the active form, by requerying the source of data for the form or control.
 
Old January 26th, 2005, 11:52 AM
Authorized User
 
Join Date: Dec 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

SUCCESS...cheers pal

Cheers
Tony





Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating one table with data from another table dirtdog22 Access VBA 1 January 21st, 2008 04:41 PM
Updating Table gregalb SQL Server 2000 1 June 2nd, 2007 04:39 PM
Updating table every now and then rtr1900 Classic ASP Databases 2 December 2nd, 2005 03:12 AM
Updating table Hudson40 Access VBA 6 March 23rd, 2005 12:07 PM
updating table markhardiman Classic ASP Databases 2 September 29th, 2004 12:35 PM





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