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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number or Text 1

Status
Not open for further replies.

danrobson

IS-IT--Management
May 29, 2001
30
GB
I'm confused !

I have a table with two dates (Date1 and Date2). Query has calculated field datediff("d",Date2,Date1). This produces the number of days between the two dates. Now if I enter as criteria for the calculated field >100 I get only those records where the datediff is >100, great, now for the problem, if I enter the criteria for the calculated field as >[Days] thus prompting the user to enter the number of days, entering a value of 100 does not produce the same result, it appears that the calulated field is treated as a text field, meaning 9 is greater than 100.

Can anyone help ??

Dan
 
Without looking into a problem:
>val([Days])
Aivars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top