PC Review


Reply
Thread Tools Rate Thread

code works in 2000, won't work in 2007

 
 
Angie
Guest
Posts: n/a
 
      29th Oct 2008
I am really quite new to this. I found a bit of code in these forums that
allowed me to get data entered in a form to remain in the text boxes after
you started a new record. This was wonderful, and just what we needed.
Problems arose when someone tried to use this form in Access 2007. The text
box was blank when you started a new record, where as in 2000 it carries the
data over.

Here's an example of the code I used:

Sub TAGR_AfterUpdate()
With Me.TAGR
..DefaultValue = Chr(34) & .Value & Chr(34)
End With
End Sub

Is there something I need to alter to get it to work in both 2000 and 2007?
Any help would be greatly appreciated.
 
Reply With Quote
 
 
 
 
Angie
Guest
Posts: n/a
 
      29th Oct 2008
TAGR is the name of the text box in the form, not the database its self. The
form has about 30 data entry points, only about 5 or so that need to have
data carried from one record to the next.

And thank you very much, when my boss gets back I'll have her set the folder
to trusted!

"Linq Adams via AccessMonster.com" wrote:

> Also, what Datatype is TAGR ?
>
> --
> There's ALWAYS more than one way to skin a cat!
>
> Answers/posts based on Access 2000/2003
>
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/For...dules/200810/1
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Works Fine in Excel 2007, Excel 2000 generates Runtime Error 438 Safari Microsoft Excel Programming 0 25th Jun 2009 03:53 PM
VBA code for excel 2000 no longer works in excel 2007 Blaine Microsoft Excel Programming 8 4th Oct 2008 01:45 PM
Re: VBA Code works in Excel 2003 but won't work in Excel 2000 aglazer Microsoft Excel Programming 0 5th Sep 2005 03:52 PM
VBA Code works in Excel 2003 but won't work in Excel 2000 proteus815@gmail.com Microsoft Excel Programming 0 5th Sep 2005 09:05 AM
Re: Code works in one MDB, but corrupts. Code doesn't work in a new M John Nurick Microsoft Access VBA Modules 1 22nd Aug 2004 01:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:29 AM.