Results 1 to 3 of 3
  1. #1
    desgordon is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    5

    Is it possible to manipulate records in a wizard created subform.

    I have created a master-detail form in Access 2003 and now want to include a few command buttons to manipulate field values on the details form. I am very new to development using Access so please bear with what may seem some very simple questions:



    1) Is this possible? When I attempt to insert a command button a series of screens appear which seem to lead to a limited set of options that the command button will be able to perform.

    2) If the answer to 1 in yes, then could somebody point me to some example code where simple modifications on the detail recordset is performed.

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    It sounds like you have the Wizard button disabled on your toolbar. whilst in design mode look at your toolbox and see if the Controls Wizard is enabled.It's like a magicians wand.

    David

  3. #3
    desgordon is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    5
    Actually, the subform was already created. What I wanted to do was to manipulate values in the current record at the click of a command button but didn't know the object model for the subform. I figured it out last night though, so for the benefit of some other novice who may have a similar question:

    Private Sub COMMAND_BUTTON_Click()
    yoursubformname.Controls.Item(index).DefaultValue = yourvalue
    End Sub

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

Similar Threads

  1. Replies: 7
    Last Post: 05-24-2009, 10:24 AM
  2. Import Wizard Not Working
    By cjh2001 in forum Import/Export Data
    Replies: 1
    Last Post: 01-24-2008, 06:33 PM
  3. Replies: 1
    Last Post: 05-27-2006, 12:35 PM
  4. Manipulate DB through VB ...
    By Zoroxeus in forum Programming
    Replies: 2
    Last Post: 12-18-2005, 01:16 PM
  5. Problems with Import Spreadsheet Wizard
    By Conan Kelly in forum Import/Export Data
    Replies: 1
    Last Post: 11-29-2005, 09:39 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