I have a database with a number of different tables. Each table has an associated entry form. I want to be able to edit the records of a particular table with out creating a new "edit" form. For example, I have a table called Hours. I Have a form called addHours. I want to be able to edit the table as well but I don't want to create a new form as it will be virtually identical to the addHours form. I can easily make the addHours form into the editHours form by simply if statements. Unfortunately I don't know how to tell the form how it was called, in an adding capacity or an editing capacity.
For instances some of the conditional statements would be like:
if editing then
cmdAdd.caption = "Update"
addHours.caption = "Edit Hours"
end if
So on and so fourth. the processing of the info would be handled much the same way. I could setup a global boolean to indicate this, but I would rather a more elegant solution.
Any help would be appreciated...
Troy Williams B.Eng.
fenris@hotmail.com
For instances some of the conditional statements would be like:
if editing then
cmdAdd.caption = "Update"
addHours.caption = "Edit Hours"
end if
So on and so fourth. the processing of the info would be handled much the same way. I could setup a global boolean to indicate this, but I would rather a more elegant solution.
Any help would be appreciated...
Troy Williams B.Eng.
fenris@hotmail.com