|
-
May 29th, 2006, 04:31 PM
#1
Thread Starter
Fanatic Member
More or less than not working.....
Why does this not work?
If DataEnvironment1.rsISSUED1033.State = adStateOpen Then DataEnvironment1.rsISSUED1033.Close
DataEnvironment1.Commands("ISSUED1033").CommandType = adCmdText
DataEnvironment1.Commands("ISSUED1033").CommandText = "SELECT * FROM ISSUED1033 WHERE DysOnIssue >= '" & Text4.Text & "'"
DataEnvironment1.ISSUED1033
DataReport6.DataMember = "ISSUED1033"
DataReport6.Show
'allows a refresh with new data without having to close the report first.
DataReport6.Refresh
The DysOnIssue contains numbers of days that the equipment has been issued and text4 contains a number of day's that you wish to see equipment issued over. But it does'nt work...HELP!
thx
-
May 29th, 2006, 04:49 PM
#2
Re: More or less than not working.....
Try a sql statement without single quotes around the textbox value.
VB Code:
DataEnvironment1.Commands("ISSUED1033").CommandText = "SELECT * FROM ISSUED1033 WHERE DysOnIssue >= " & Text4.Text
-
May 29th, 2006, 04:55 PM
#3
Thread Starter
Fanatic Member
Re: More or less than not working.....
Brucevde
i get Get Data type mismatch incriteria expresion
-
May 29th, 2006, 05:00 PM
#4
Thread Starter
Fanatic Member
Re: More or less than not working.....
If I just use = then it works fine?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|