J
Jim Chapman
Hi Group,
I am using Access97 on WinXP platform. I have a form frmAttendances on
which there is a control fldDate. Basically I display a list of people and
if a date is selected in fldDate by clicking on a records date field I
insert the fDate value into that record. This all works but I found that it
was posssible to replicate data so I wrote a short routine to open a
recordset to check for previous entries for fldDate. It all worked fine!
BUT when I tested it over a range of months I must have used all odd months
'cause it doesnt work for any of the even ones. My select statement for
opening the recordset is.
StrSQL = "SELECT * From MeetingAttendances " & _
"WHERE MeetingDate = # " & [Forms]![frmAttendances]![fldDate] & _
" # ORDER BY MemberID ;"
Set rst = dbs.OpenRecordset(StrSQL)
I have checked the data and I can find nothing to account for the select
failing to pick up the records. Any thoughts would be greatly appreciated.
Jim
I am using Access97 on WinXP platform. I have a form frmAttendances on
which there is a control fldDate. Basically I display a list of people and
if a date is selected in fldDate by clicking on a records date field I
insert the fDate value into that record. This all works but I found that it
was posssible to replicate data so I wrote a short routine to open a
recordset to check for previous entries for fldDate. It all worked fine!
BUT when I tested it over a range of months I must have used all odd months
'cause it doesnt work for any of the even ones. My select statement for
opening the recordset is.
StrSQL = "SELECT * From MeetingAttendances " & _
"WHERE MeetingDate = # " & [Forms]![frmAttendances]![fldDate] & _
" # ORDER BY MemberID ;"
Set rst = dbs.OpenRecordset(StrSQL)
I have checked the data and I can find nothing to account for the select
failing to pick up the records. Any thoughts would be greatly appreciated.
Jim