Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a Proper Case module

Status
Not open for further replies.

ChrisHaynes

Technical User
Mar 9, 2006
80
GB
Hi, I was looking at this archived thread: thread702-928808 about vbProperCase and creating my own proper case module. I have added the module to my database. Then I tried adding the code

Me.User = MyProperCase(Me.User, 0)

to the 'after update' section of my 'User' field text box.

However, when I type in a name in the text box, I get the following error:

Compile error: expected variable or procedure, not module

I think I am putting the code in the wrong place.

Can anyone help??

 
Have you called the Module the same name as the Procedure?
 
Thanks Remou. That was the problem. I renamed the module and everything is fine now.

Thanks alot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top