Insert Blank Row

Simple question but I am too burnt out today to remember the simple answer.  How can you insert a blank row into an access table.  My table is called tmpMigration2 and I want to do this in the VBA.
flfmmqpAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

harfangCommented:
Well.

You can't "insert" in tables, only "append". And normally, you can't have a "blank" row, as one field at least should contain something -- e.g. the  key field.

Perhaps you meant: in a report? Or did you mean: how to add a new record in a table using VB?

Cheers!
(°v°)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeffrey CoachmanMIS LiasonCommented:
flfmmqp,

harfang is correct.

Can you explain why you need this blank Record?

I mean, you could very well insert a null into one of the fields, than save the record.
In effect creating a Blank Record.
Like so:

Private Sub cmdInsertBlank_Click()
    'Creates a new record
    DoCmd.GoToRecord , , acNewRec
    'Inserts a Null in one Field
    Me.AnyFieldInYourForm = Null
    'Saves the record
    DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
    'Displays a message after inserting the blank record,
    'so the user won't think it is a "New" record, and start entering data.
    MsgBox "Here is your Blank Record"
End Sub

But this is non-standard and might cause problems.

But again, Why do you need this functionality?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.