Results 1 to 13 of 13
  1. #1
    Bradex is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    101

    Question Can I create a table from a form?

    I know I can create a form from a table using the form wizard. However, is the other way possible? That is, can I create a form first and then make a table from it?



    I am asking this because, I think starting with the form first offers more designs for the 'controls' (each field in the form) to the user. once a 'field' is made in a table, the options for its display as a 'control' in the form is limited. For example, if i create a dropdown list in a 'field' in a table, I am not able to create a 'control' for it in the form like a radio button (Option group).

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Can you? Sure, Google DAO TableDef. That said, I'm not sure why you'd want to. If you're letting users create tables, you probably have a design problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Bradex is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    101
    The main reason is that I am not able to create a 'option group' for my field from the table.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I would think you could manually create an option group and set its control source to your field. It would need to be a numeric field if memory serves, as I think an option group will only return a number.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101
    Seems to be a good idea! I'll try! Thanks a lot!

  6. #6
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101
    Even though I have set my field to be a number, it is not being shown in the list of fields shown by the options group wizard. Why is it so?

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Not sure, but perhaps try leaving it unbound while building it with the wizard and set the control source after.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101
    Even in the property sheet (Data tab > Control source) that particular field is not being shown, only the ID appears.

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Can you attach the db here? Perhaps it's because you used a lookup field, which I never do.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  10. #10
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101
    Here it is...

  11. #11
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Nothing shows because the form doesn't have a record source. Once I make the record source Table1, all 3 fields show up as options for the control source of the frame.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  12. #12
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101
    Oh! Thanks a ton pbaldy!

  13. #13
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 06-04-2015, 09:48 AM
  2. Replies: 1
    Last Post: 08-05-2014, 08:17 AM
  3. Replies: 1
    Last Post: 05-20-2013, 01:45 PM
  4. Replies: 3
    Last Post: 10-02-2012, 12:25 PM
  5. Replies: 5
    Last Post: 05-02-2012, 07:56 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