Compile Error

wilson51

Board Regular
Joined
Mar 31, 2003
Messages
50
I am using Access 2000 on home PC with Win2000.

With many of my input forms I'm using the following code to convert users input into proper case

Private Sub Title_AfterUpdate()
[Title] = StrConv([Title], vbProperCase)
End Sub

On my home PC it works fine.

When I transfer the file to my Laptop (Access 2000 & WinXP) or Work PC (Access2000 & Win 2000) I get the following compile error

"Can't find project or library" with "StrConv" highlighted



How can I fix this?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi,

This is a common problem but normally happens when you move from one version of Access to another, not within the same version. Are they both at the same service pack level?

Anyway, to resolve this go in to the VB editor and click Tools, References. If you can see any references marked as MISSING then uncheck them, click OK and the problem should be fixed. Let us know if that doesn't do it...
 
Upvote 0
Thanks. I did that with the following

"Open the library window
Write down all enabled references
Uncheck all references that access will allow to uncheck
Close and the reopen the references window
Recheck(enable) all of the library references unchecked in the previous step above
Close the library reference"

and yep it worked on both machines

(y)
 
Upvote 0

Forum statistics

Threads
1,221,621
Messages
6,160,879
Members
451,675
Latest member
Parlapalli

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top