Results 1 to 5 of 5
  1. #1
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    528

    How do I make form is blank at the beginning of the open

    Hello Guys
    I have a model based on the Customers table, and when you open the program be the first form ....
    Question


    How do I make my form is blank at the beginning of the open ?
    do not see no record of it, but if you choose to record from a combo box
    Thank you

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    There is a property on the form you can set. If you have the form's "Data Entry" property set to = Yes, the form will open to a new record. If you set the combobox's Bound Control property to a control on the form, the combobox will populate that control/field with its value. Use the Bound Column property of the combobox to determine the column that is relative to the value of the combobox.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,016
    You cannot retrieve existing Records in a Form where Data Entry is set to Yes; the existing Records aren't part of the RecordSource.

    This kind of thing can be done by moving to a New Record when opening the Form:

    Code:
    Private Sub Form_Load()
      DoCmd.GoToRecord , , acNewRec
    End Sub

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    So true. I know these things too. :HandOnForehead

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,016
    Quote Originally Posted by ItsMe View Post
    I know these things too. :HandOnForehead
    I knew you did! But don't feel bad; I see other people, who also know better, give the same answer three or four times a week! That's why my entire post, above, was simply copied & pasted from an archived response file I have for just this situation!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 11-30-2013, 06:23 AM
  2. Replies: 3
    Last Post: 01-08-2013, 02:41 PM
  3. Replies: 5
    Last Post: 06-11-2012, 08:47 AM
  4. Replies: 5
    Last Post: 10-17-2011, 02:53 PM
  5. I want my form to open blank
    By uneek78 in forum Forms
    Replies: 10
    Last Post: 01-12-2011, 01:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums