I need help on a database i am creating. I need to write a vb program which detects if the current inputs already exists or if it is in conflict with existing records.
My method is I create a query from the current inputs
qrySQL= Select From [tblRegis].Subject
Where [tblRegis].TimeIn = '" & txtTimeIn & "'
And [tblRegis].Days = '" & cboDays & "'
And [tblRegis].Room = '" & cboRoom & "'
qd.SQL = qrySQL
(lets assume that the query is created)
after that i place the field value of subject into strSubject using DlookUp on the query
If it is null it means that there are no similar fields in the tblRegis and there is no conflict..
am i missing anything?because as of now i am not receiving proper outputs..
If you guys have a solution for this as simple as possible please help me..