Queries fromm ACC97 to ACCXP

G

Grzegorz Rozanski

I have many queries like 'select foms!form1!datestart as Expr1, ...' which
worked fine in access97. When I do the same in AccessXP I can see nothing in
field Expr1. Or sometimes I can see 'Chinese' characters.
The problem is only when 'foms!form1!datestart' is datetime data.
Why it doesn't work in AccXP?
When I try to add 'foms!form1!datestart' to parameters it works only when
its datatype is string.


Any suggestions welcome

Thanks, Grzesiek
 
J

John Nurick

Hi Grzegorz,

I guess the first thing to do is to check the date/time formats and
regional settings on your computer to ensure that the string values
being displayed on the form are acceptable as date values.

Also or alternatively, try using expressions like

CDate([Forms]![Form1]![datestart])

to explicitly convert the string in the textbox to a date-time value.
 
X

xubf123

Grzegorz Rozanski said:
I have many queries like 'select foms!form1!datestart as Expr1, ...' which
worked fine in access97. When I do the same in AccessXP I can see nothing in
field Expr1. Or sometimes I can see 'Chinese' characters.
The problem is only when 'foms!form1!datestart' is datetime data.
Why it doesn't work in AccXP?
When I try to add 'foms!form1!datestart' to parameters it works only when
its datatype is string.


Any suggestions welcome

Thanks, Grzesiek
 

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