Results 1 to 5 of 5
  1. #1
    grant.smalley is offline Novice
    Windows Vista Access 2000
    Join Date
    Jan 2010
    Posts
    8

    No entry on open form

    Hi,

    I have a main form (called MainFrm) and a tabular subform (called NotesFrm) that contains notes. The two forms and tables are linked by a Primary Key called FraudRef.

    I want users to create a new note in the subform using a seperate pop up box. To acheive this, i need the form to open as a new record but still link to the main form by the Primary Key.

    Any ideas?

    Regards,



    Grant

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows XP Access 2003
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Well as far as i can understand that you need to open a blank subform so that the user can enter data.

    Solution:

    open the NotesFrm in the design view. Click on form properties. Go to Data and in the catagory Data Entry select Yes. This will always open the subform to record new data. If this solves your problem please mark this thread as solved.

  3. #3
    grant.smalley is offline Novice
    Windows Vista Access 2000
    Join Date
    Jan 2010
    Posts
    8
    I made a mistake in my earlier post. The form is a seperate form not a subform. If i select the catagory Data Entry as Yes then the Primary key in the form is set as o.

    Any thoughts?

  4. #4
    maximus's Avatar
    maximus is offline Expert
    Windows XP Access 2003
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Now tell me do you want to do. Do you require to populate the primary key field with a certain value when you open the form.
    here are some information that i will require to help you out:
    1. Do you open this form through another form.
    2. Do you have the condition field in the form from which you open this form.

    why don't you zip your database and attach it so that i can help.

  5. #5
    grant.smalley is offline Novice
    Windows Vista Access 2000
    Join Date
    Jan 2010
    Posts
    8
    Hi,

    I've worked it out now. Ive added the following in the on current event on the form:

    Private Sub Form_Current()
    Me.[Fraud Ref] = Forms!NewMainFrm![Fraud Ref]
    End Sub

    This populates the primary key from the main form to the notes form and i have set the notes form to data entry.

    Thanks any.

    P.S. Do you have any idea how to resolve my other post:

    https://www.accessforums.net/forms/a...text-3929.html

    Many thanks

    Grant

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

Similar Threads

  1. date entry on input form
    By dzawicki in forum Forms
    Replies: 3
    Last Post: 12-25-2009, 08:13 AM
  2. How to fill report with same form entry?
    By newtoAccess in forum Reports
    Replies: 2
    Last Post: 11-22-2009, 10:06 AM
  3. blank on entry on add a record form
    By gmee in forum Forms
    Replies: 1
    Last Post: 10-07-2009, 07:31 AM
  4. Replies: 4
    Last Post: 03-24-2009, 09:07 PM
  5. Run report or sub form during data entry
    By wasim_sono in forum Programming
    Replies: 0
    Last Post: 03-09-2006, 05:40 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