P
Phoebe
Guest
Hello!
Below code doesn't seem to be running. Can someone help ??
I had created a new form putting 2 textboxes : 1 to rep startdate & another to rep enddate, 1 command button to perform the below function and a text to display all orders from order table.
I too need to ensure that the enddate is not before startdate.
Please help, anyone ??
Private Sub Button_Click
DIM STRSQL AS STRING
DIM STRSTARTDATE AS STRING
DIM STRENDDATE AS STRING
IF NOT ISDATE(ME.TXTSTARTDATE)
ENDIF
IF ISNULL(ME.TXTSTARTDATE)
ENDIF
IF ENDDATE < STARTDATE
STRSTARTDATE=ME.TXTSTARTDATE
STRSQL="SELECT * FROM ORDER
WHERE " & _ STRSTARTDATE &
"# AND #"
ME.LABEL.CAPTION=STRSQL
END SUB
Thank You.
Below code doesn't seem to be running. Can someone help ??
I had created a new form putting 2 textboxes : 1 to rep startdate & another to rep enddate, 1 command button to perform the below function and a text to display all orders from order table.
I too need to ensure that the enddate is not before startdate.
Please help, anyone ??
Private Sub Button_Click
DIM STRSQL AS STRING
DIM STRSTARTDATE AS STRING
DIM STRENDDATE AS STRING
IF NOT ISDATE(ME.TXTSTARTDATE)
ENDIF
IF ISNULL(ME.TXTSTARTDATE)
ENDIF
IF ENDDATE < STARTDATE
STRSTARTDATE=ME.TXTSTARTDATE
STRSQL="SELECT * FROM ORDER
WHERE " & _ STRSTARTDATE &
"# AND #"
ME.LABEL.CAPTION=STRSQL
END SUB
Thank You.