A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Different access behaviour with different regional settings



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2004, 02:01 PM
Krzysztof Malinowski
external usenet poster
 
Posts: n/a
Default Different access behaviour with different regional settings

Hi,

I have an access database, which under polish default regional settings works correct. If I change the default settings to US english, then I get this message always when I try to open any form (see below).

"The expression On Open you entered as the event property setting produced the following error:
A problem occured while database name was communicating with the OLE server or ActiveX Control."

" * The expression may not result in the name of macro, the name of user-defined function, or [Event Procedure],
* There may have been an error evaluating the function, event, or macro. "

I also made some researches, this message is generated only if form has some events, but when I drop these events
or (even) comment them inside form's module, then everything is OK. Other procedures (non-events) inside form's module don't involve any problems.

Well, I'll glad receiving some tips
Krzysztof Malinowski
  #2  
Old May 7th, 2004, 01:28 PM
Nikos Yannacopoulos
external usenet poster
 
Posts: n/a
Default Different access behaviour with different regional settings

Krzysztof,

Just guessing here, but my experience as a non-US user says it's most likely
something to do with dates. If the code in your events deals with dates at
all, then That's where you should look first. Bear in mind that VB treats
dates as US format (month/day/year), so it's wise to use Format functions to
make sure what it reads come in the right format, and what it writes is
converted to the expected format before it is written.

HTH,
Nikos

"Krzysztof Malinowski" wrote in message
...
Hi,

I have an access database, which under polish default regional settings

works correct. If I change the default settings to US english, then I get
this message always when I try to open any form (see below).

"The expression On Open you entered as the event property setting produced

the following error:
A problem occured while database name was communicating with the OLE

server or ActiveX Control."

" * The expression may not result in the name of macro, the name of

user-defined function, or [Event Procedure],
* There may have been an error evaluating the function, event, or

macro. "

I also made some researches, this message is generated only if form has

some events, but when I drop these events
or (even) comment them inside form's module, then everything is OK. Other

procedures (non-events) inside form's module don't involve any problems.

Well, I'll glad receiving some tips
Krzysztof Malinowski



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.