PC Review


Reply
Thread Tools Rate Thread

Compile Error (from Windows 2000 converted to Windows XP Pro)

 
 
Phoebe Brimer
Guest
Posts: n/a
 
      11th Sep 2003
We have a form w/ a subform used for data entry of sales.
We recently installed a new computer and our database,
which works fine in Windows 2000 and Windows XP Home, now
gives a compile error in Windows XP Pro. HELP!

The error reads "Compile Error: Can't find project or
library". The code error is below on line starting
rs.FindFirst.... it doesn't like the "Str".

Option Compare Database

Private Sub Combo18_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[niMaster_ID] = " & Str(Me![Combo18])
If Not rs.EOF Then
Me.Bookmark = rs.Bookmark
Else
MsgBox "Cannot find Master Record!" & vbCrLf
& "Please contact your Administrator.",
vbCritical, "Unable to Locate Master Record"
End If
End Sub

Can anybody help??

Thanks,
Phoebe
 
Reply With Quote
 
 
 
 
Van T. Dinh
Guest
Posts: n/a
 
      11th Sep 2003
Probably Reference Errors. See Douglas J. Steele Web site:

http://members.rogers.com/douglas.j....nceErrors.html

--
HTH
Van T. Dinh
MVP (Access)



"Phoebe Brimer" <(E-Mail Removed)> wrote in message
news:05df01c3786f$b7afa370$(E-Mail Removed)...
> We have a form w/ a subform used for data entry of sales.
> We recently installed a new computer and our database,
> which works fine in Windows 2000 and Windows XP Home, now
> gives a compile error in Windows XP Pro. HELP!
>
> The error reads "Compile Error: Can't find project or
> library". The code error is below on line starting
> rs.FindFirst.... it doesn't like the "Str".
>
> Option Compare Database
>
> Private Sub Combo18_AfterUpdate()
> ' Find the record that matches the control.
> Dim rs As Object
> Set rs = Me.Recordset.Clone
> rs.FindFirst "[niMaster_ID] = " & Str(Me![Combo18])
> If Not rs.EOF Then
> Me.Bookmark = rs.Bookmark
> Else
> MsgBox "Cannot find Master Record!" & vbCrLf
> & "Please contact your Administrator.",
> vbCritical, "Unable to Locate Master Record"
> End If
> End Sub
>
> Can anybody help??
>
> Thanks,
> Phoebe



 
Reply With Quote
 
Phoebe Brimer
Guest
Posts: n/a
 
      11th Sep 2003
Van,

Thanks. It worked like a charm.

Phoebe
>-----Original Message-----
>Probably Reference Errors. See Douglas J. Steele Web

site:
>
>http://members.rogers.com/douglas.j....ccessReference

Errors.html
>
>--
>HTH
>Van T. Dinh
>MVP (Access)
>
>
>
>"Phoebe Brimer" <(E-Mail Removed)> wrote in message
>news:05df01c3786f$b7afa370$(E-Mail Removed)...
>> We have a form w/ a subform used for data entry of

sales.
>> We recently installed a new computer and our database,
>> which works fine in Windows 2000 and Windows XP Home,

now
>> gives a compile error in Windows XP Pro. HELP!
>>
>> The error reads "Compile Error: Can't find project or
>> library". The code error is below on line starting
>> rs.FindFirst.... it doesn't like the "Str".
>>
>> Option Compare Database
>>
>> Private Sub Combo18_AfterUpdate()
>> ' Find the record that matches the control.
>> Dim rs As Object
>> Set rs = Me.Recordset.Clone
>> rs.FindFirst "[niMaster_ID] = " & Str(Me![Combo18])
>> If Not rs.EOF Then
>> Me.Bookmark = rs.Bookmark
>> Else
>> MsgBox "Cannot find Master Record!" & vbCrLf
>> & "Please contact your Administrator.",
>> vbCritical, "Unable to Locate Master Record"
>> End If
>> End Sub
>>
>> Can anybody help??
>>
>> Thanks,
>> Phoebe

>
>
>.
>

 
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
compile error on previously functioning code outlook 2003 windows Celeste Microsoft Outlook VBA Programming 1 16th May 2010 09:28 AM
#include <windows.h> causes compile error =?Utf-8?B?YnJpYW5faGFycmlz?= Microsoft Dot NET Framework Forms 1 19th Jan 2006 08:42 PM
Windows NT user name function - compile error =?Utf-8?B?TGF1cmFfQ2hyaXN0aWFu?= Microsoft Access Form Coding 2 11th Nov 2005 09:03 PM
I lost my Office 2000 disks and converted to windows XP. I cannot. =?Utf-8?B?bWlrZXk5OTcx?= Microsoft Outlook Discussion 1 30th Sep 2004 07:56 PM
Windows 2000 version 5.0 beta won't compile VC++ Apps Duncan Microsoft Windows 2000 Developer 1 22nd Jul 2004 02:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:58 PM.