add a row to table

  • Thread starter Thread starter Ken Sutcliffe
  • Start date Start date
K

Ken Sutcliffe

How do I code to automatically add an empty row to the db
in a specified table.

It would be great if you can

Many Thanks

Ken Sutcliffe
 
Ken,

You mean completely empty? Only way I can think of is...

CurrentDb.Execute "INSERT INTO YourTable ( AField ) VALUES ( ' ' )"
CurrentDb.Execute "UPDATE YourTable SET AField=Null WHERE AField=' '"

This would assume that a blank record is in fact permitted, i.e. no
Primary Key field, no 'required' fields, no applicable Validation Rules,
etc, so this is very unusual!
 
Back
Top