MikeDuffield
Registered User.
- Local time
- Today, 07:44
- Joined
- Aug 31, 2010
- Messages
- 50
Hi guys & girls,
Doing a fairly simple thing here which I'm sure I've almost cracked, however no matter what I've tried I've not had any luck. Searching didn't shed much light either.
I have the following SQL:
The idea is to have startdate and enddate filled in by two text boxes on a form. Let's say that the form is called "reportfrm" and the boxes are called "fromtxt" and "totxt".
Can anyone help?
(I'm used to VB, where it would just be a case of me.totxt.value, I'm not so confident in SQL...)
Thanks in advance.
Mike.
Doing a fairly simple thing here which I'm sure I've almost cracked, however no matter what I've tried I've not had any luck. Searching didn't shed much light either.
I have the following SQL:
Code:
WHERE DATEDIFF('d'.startdate,enddate) > 0
The idea is to have startdate and enddate filled in by two text boxes on a form. Let's say that the form is called "reportfrm" and the boxes are called "fromtxt" and "totxt".
Can anyone help?
(I'm used to VB, where it would just be a case of me.totxt.value, I'm not so confident in SQL...)
Thanks in advance.
Mike.