index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: Dates and Foxpro :: (5)Post a New Message | Post a Reply
Jan 14 2005, 7:20 AM
 Dates and FoxproPost a Reply
 Ian

View this author's profile Send this author a private message

from: Oxford, England

I am currently trialing your product, looks great BTW

However I get a "Operator/operand type mismatch" when running a report that contains a filter with dates when connected to a FoxPro database.

I am sure that this is because FoxPro insists on surounding dates with braces {} in SQL Select Statements
e.g SELECT * FROM dbname WHERE datefield > {01/01/2005}
But if I put {01/01/2005} in the wizard I get "Invalid search condition"

Works fine with other types of databases and also if I subsequently refine the dates in the report output.

Any ideas?

Thanks


Jan 14 2005, 1:43 PM
 Re: Dates and FoxproPost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

try the latest version (v2.4.78) and let me know if this solves the problem


-------------------------
Ghost
Jan 17 2005, 4:51 AM
 Re: Dates and FoxproPost a Reply
 Ian

View this author's profile Send this author a private message

from: Oxford, England

Intalled version 2.4.78 but still get the same problem

Jan 17 2005, 5:54 AM
 Re: Dates and FoxproPost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

add the following line to your code right before you initialize your connection string.

objWiz.DatabaseType = 3 'FOXPRO
objWiz.Init(strConn)




-------------------------
Ghost
Jan 17 2005, 7:19 AM
 Re: Dates and FoxproPost a Reply
 Ian

View this author's profile Send this author a private message

from: Oxford, England

Thanks Ghost - That worked a treat.

However now that it is working I have come across another FoxPro oddity.
I'm in the UK and we use the date format dd/mm/yy. But I have to use mm/dd/yy when adding a filter but when refining the report output I have to use dd/mm/yy. This is just with FoxPro I have tried an Access database and that consistantly requires dd/mm/yy

I have set objWiz.DefaultDateFormat = "DD/MM/YY" but that just seems to effect the output.

Sorry to be a pest.

Pages: (1)   [1]

search this forum: