Results 1 to 2 of 2
  1. #1
    RedGoneWILD is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    105

    FilterOn property...unable to add new record when opening form with the filter on??

    Hi,



    I have a form with the record source set to a query with a couple thousand records. There are two places to open this form in my program. One from the switchboard and it displays all records in the query. Another from a form that filters to meet a specific Employee Number. When I open the form from the switchboard (all records) the last row is a blank record. When I open with the filter on, the blank record does not exist. I have "Allow Additions" set to true, so what is causing this behavior?

    I have a button on the form with the following code:

    Code:
    Private Sub btnAddNewRecord_Click()
        DoCmd.GoToRecord , , acNewRec  'goes to open record
        Me.cboDriverNumber.SetFocus      'sets focus to combo box
    End Sub
    It works fine when I open from the switchboard (with all records displayed from the query). It does not work and there is no blank record when I open it from the form with the filter applied.

    Any suggestions?

  2. #2
    RedGoneWILD is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    105
    still cant figure this out...any ideas on this?

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

Similar Threads

  1. Replies: 3
    Last Post: 07-20-2012, 11:41 AM
  2. Replies: 28
    Last Post: 03-08-2012, 06:47 PM
  3. Replies: 9
    Last Post: 09-16-2011, 03:52 PM
  4. Unable to add a record on a form
    By JamiB1979 in forum Forms
    Replies: 1
    Last Post: 06-22-2011, 08:36 PM
  5. Replies: 1
    Last Post: 02-18-2011, 04:04 AM

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