I need to add a log file to an application. From many places in the application, I would like to call a function like this:
Log(Log_number, location, employee, "This is the text of the log")
Usually when adding a record to a table like this I would use an append query, and pick up the field values from controls on the form in use.
But in this case, I will be calling the function from many places, so cannot use controls to get the data.
How would I write a general purpose 'add log to table' function?
Robert
Log(Log_number, location, employee, "This is the text of the log")
Usually when adding a record to a table like this I would use an append query, and pick up the field values from controls on the form in use.
But in this case, I will be calling the function from many places, so cannot use controls to get the data.
How would I write a general purpose 'add log to table' function?
Robert