Results 1 to 3 of 3

Thread: When adding to a form, how do I...

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    1
    I have a form in Access that adds to the corresponding table.

    Currently when I open the form, it takes me to the first record in the table; and I have to cycle through all recors to get to a blank one to enter new data.

    How can I make it so that the form opens up to blank fields without having to cycle through them? (I'm extremely new to this, with limited VB skills, so precise examples would be appreciated)


    Thank you for your time.

  2. #2
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179
    try this c.s

    Private Sub Form_Load()
    'assuming that text1.text is the field for entering data
    text1.text=" "


    End Sub

    hope that helps


  3. #3
    Lively Member Dr_Evil's Avatar
    Join Date
    Mar 2000
    Location
    Columbus, OH
    Posts
    105
    Add this to you Form_Load event by opening you form and clicking "Code" on the View menu.
    Code:
    Private Sub Form_Load()
        Form.Recordset.AddNew
    End Sub
    If you need any more help just post & I'll see what I can do.
    Dr_Evil
    Senior Programmer
    VS6 EE
    VS.NET EA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width