hi all
i created two textboxes to insert date and a button..i hv this following code for that button..but when i ran error msg shows error like 'runtime error 13' & type mismatch..i hv no idea why it happens as long as i hv only simple code
dbEnq.RecordSou rce = " select * from Enquirer where Date > '" & Format("MM/dd/yyyy", txtDate1.Text) & "'" And " Date < '" &
Format("MM/dd/yyyy", txtDate2.Text) & "'"
bEnq.RecordSour ce = " select * from Enquirer where LibDuty = '" & txtDate1.Text & "'"
dbEnq.Refresh
i created two textboxes to insert date and a button..i hv this following code for that button..but when i ran error msg shows error like 'runtime error 13' & type mismatch..i hv no idea why it happens as long as i hv only simple code
dbEnq.RecordSou rce = " select * from Enquirer where Date > '" & Format("MM/dd/yyyy", txtDate1.Text) & "'" And " Date < '" &
Format("MM/dd/yyyy", txtDate2.Text) & "'"
bEnq.RecordSour ce = " select * from Enquirer where LibDuty = '" & txtDate1.Text & "'"
dbEnq.Refresh
Comment