Hi there, I could use some assistance. I have created a timesheet in InfoPath that writes to a MSSQL database. I want to prevent duplicate timesheets being written. Essentially there are two fileds (1) Employee ID and (2) Start Date that identify unique timesheets.
I need to check if there is an existing record that matches these two fields, and if so I want to prevent the user from creating a new timesheet. Anyone have any experience with this?
I expect I need to query either in VB code (having troubles finding good examples) or directly on the form. But I find that doing a query after initiating 'new record' causes some problems. Any help or direction would be good :)
Thanks,
Andrew