Hello all
I have a Access DB that I am saving and retrieving records to/from. I want to limit the user to save only 1 record per client name per Advisor per day.
Here is my SQL statement
strsql = "SELECT * From INV_Prof Where ([ClientName] = '" & strClientFullName & "') AND ([DateSaved] = #" & sysdate & "#) AND [AdvisorKey] = " & g_udtAdvisorInfo.lngAgentID
This works well except that when I save a record using a client name of
donald d duck
then try to save a second record with a client name of
DONALD D DUCK
I am able to save this second record.
In other words the sql statement as it is, is not seeing these two names as being the same.
How can I fix this?
Thanks
I have a Access DB that I am saving and retrieving records to/from. I want to limit the user to save only 1 record per client name per Advisor per day.
Here is my SQL statement
strsql = "SELECT * From INV_Prof Where ([ClientName] = '" & strClientFullName & "') AND ([DateSaved] = #" & sysdate & "#) AND [AdvisorKey] = " & g_udtAdvisorInfo.lngAgentID
This works well except that when I save a record using a client name of
donald d duck
then try to save a second record with a client name of
DONALD D DUCK
I am able to save this second record.
In other words the sql statement as it is, is not seeing these two names as being the same.
How can I fix this?
Thanks