M
Michael Conroy
I have an unbound form for entering a new author into my library database.
The firstname and lastname fields are required, but the web address is
optional. If I use an append query, I have to check if the URL field is null
(if statement) and use separate SQL strings accordingly. I haven't tried a
DAO recordset yet, but I am assuming the same problem. One program
requirement, I want to give the user the option of not saving, so I don't
want to bind the form to the table and get lots of empty autonumber fields.
So, what is the trick? What if the form had five required fields and five
optional fields, how do you program VBA for this contigency? As always, any
help would be greatly appreciated.
The firstname and lastname fields are required, but the web address is
optional. If I use an append query, I have to check if the URL field is null
(if statement) and use separate SQL strings accordingly. I haven't tried a
DAO recordset yet, but I am assuming the same problem. One program
requirement, I want to give the user the option of not saving, so I don't
want to bind the form to the table and get lots of empty autonumber fields.
So, what is the trick? What if the form had five required fields and five
optional fields, how do you program VBA for this contigency? As always, any
help would be greatly appreciated.