PC Review


Reply
Thread Tools Rate Thread

Convert 2003 to 2007- with VBA

 
 
MartyO
Guest
Posts: n/a
 
      24th Oct 2008
Hi there,
I've converted a .mdb 2003 database to vs. 2007. I'm getting a compile
error in the 2007 version, everything runs fine in the old version.
For example, in
With rec
.FindFirst "[Login] = '" & Me.Login & "'"

the Compile error "Method or data member not found" is generated when
execution hits the "Me.Login" part of the code.

Is there something else I need to do in order to convert to 2007?
Secondly, I intend to Publish this to Sharepoint, is there anything else I
should look out for, or known not to work in Sharepoint?

Thanks in advance!
Marty


 
Reply With Quote
 
 
 
 
MartyO
Guest
Posts: n/a
 
      24th Oct 2008
Nevermind.... looks like I needed to change my "Dim db as Database"
declarations to "Dim db as DAO.Database", as well as the recordset ones too.
Now it works fine.
Thanks!
Marty

"MartyO" wrote:

> Hi there,
> I've converted a .mdb 2003 database to vs. 2007. I'm getting a compile
> error in the 2007 version, everything runs fine in the old version.
> For example, in
> With rec
> .FindFirst "[Login] = '" & Me.Login & "'"
>
> the Compile error "Method or data member not found" is generated when
> execution hits the "Me.Login" part of the code.
>
> Is there something else I need to do in order to convert to 2007?
> Secondly, I intend to Publish this to Sharepoint, is there anything else I
> should look out for, or known not to work in Sharepoint?
>
> Thanks in advance!
> Marty
>
>

 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      25th Oct 2008
Ah, the References issue again.

FWIW, MartyO, this might help avoid some of the more common issues:
Converting to Access 2007
at:
http://allenbrowne.com/Access2007.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"MartyO" <(E-Mail Removed)> wrote in message
news:A434B129-4364-4A11-A636-(E-Mail Removed)...
> Nevermind.... looks like I needed to change my "Dim db as Database"
> declarations to "Dim db as DAO.Database", as well as the recordset ones
> too.
> Now it works fine.
> Thanks!
> Marty
>
> "MartyO" wrote:
>
>> Hi there,
>> I've converted a .mdb 2003 database to vs. 2007. I'm getting a compile
>> error in the 2007 version, everything runs fine in the old version.
>> For example, in
>> With rec
>> .FindFirst "[Login] = '" & Me.Login & "'"
>>
>> the Compile error "Method or data member not found" is generated when
>> execution hits the "Me.Login" part of the code.
>>
>> Is there something else I need to do in order to convert to 2007?
>> Secondly, I intend to Publish this to Sharepoint, is there anything else
>> I should look out for, or known not to work in Sharepoint?


 
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
Help Help trying to convert from 2003 to 2007 CD Tom Microsoft Access Form Coding 2 15th Oct 2009 11:10 PM
How do I convert a 2007 pps to a 2003 ppt? Henrik Microsoft Powerpoint 5 21st May 2009 04:07 PM
cannot convert from 2007 to 2003 apasaja Microsoft Access 5 12th Apr 2009 12:47 AM
2003-->2007 convert problems =?Utf-8?B?TWlyaQ==?= Microsoft Excel Misc 0 2nd Oct 2007 02:17 PM
convert powerpoint 2007 to 2003 =?Utf-8?B?Sm9obg==?= Microsoft Powerpoint 4 28th May 2007 01:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:34 AM.