public variable does not recognize

I

iccsi

I have an application which has a public varaiable like following:

dim MyDateTime as Datetime

it does not recorgnize in one machine in the query.

The criteria is

[forms]![MyForm].[MyDateTime]

Above query works in all users machine except one read always zero..

It seems one machine has different setup?
Any option and property to set read public variable?

Your information is great appreciated,
 
R

ruralguy via AccessMonster.com

Not as far as I know.
I have an application which has a public varaiable like following:

dim MyDateTime as Datetime

it does not recorgnize in one machine in the query.

The criteria is

[forms]![MyForm].[MyDateTime]

Above query works in all users machine except one read always zero..

It seems one machine has different setup?
Any option and property to set read public variable?

Your information is great appreciated,
 
R

ruralguy via AccessMonster.com

Any MISSING references on that one machine?
http://www.accessmvp.com/djsteele/AccessReferenceErrors.html
I have an application which has a public varaiable like following:

dim MyDateTime as Datetime

it does not recorgnize in one machine in the query.

The criteria is

[forms]![MyForm].[MyDateTime]

Above query works in all users machine except one read always zero..

It seems one machine has different setup?
Any option and property to set read public variable?

Your information is great appreciated,
 
A

AccessVandal via AccessMonster.com

DateTime is a reserved name and word in Access.

It’s very unlikely to be a referance library or an ActiveX.

Do you have a Class module with that name? You should be using it as

Dim MyDateTime as Date

If you called it as Datetime, you may need to rename it to something else
more appropriate.

Look for Allen Browne’s site on reserve names here.
http://www.allenbrowne.com/AppIssueBadWord.html
I have an application which has a public varaiable like following:

dim MyDateTime as Datetime

it does not recorgnize in one machine in the query.

The criteria is

[forms]![MyForm].[MyDateTime]

Above query works in all users machine except one read always zero..

It seems one machine has different setup?
Any option and property to set read public variable?

Your information is great appreciated,
 
R

ruralguy via AccessMonster.com

Good catch! Sharp eye.
DateTime is a reserved name and word in Access.

It’s very unlikely to be a referance library or an ActiveX.

Do you have a Class module with that name? You should be using it as

Dim MyDateTime as Date

If you called it as Datetime, you may need to rename it to something else
more appropriate.

Look for Allen Browne’s site on reserve names here.
http://www.allenbrowne.com/AppIssueBadWord.html
I have an application which has a public varaiable like following:
[quoted text clipped - 12 lines]
Your information is great appreciated,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top