saving subforms value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • micksitup
    New Member
    • Feb 2007
    • 32

    saving subforms value

    hi all,

    How can i get a subforms value to save into a table?

    the table only has 1 entry, so it should edit itm rather than add a new one
  • JConsulting
    Recognized Expert Contributor
    • Apr 2007
    • 603

    #2
    Originally posted by micksitup
    hi all,

    How can i get a subforms value to save into a table?

    the table only has 1 entry, so it should edit itm rather than add a new one
    currentdb.execu te "update yourtable set field ='" & me.mytextbox & ";'"

    put this on a click event or button on your subform. Change the names to yours.

    J

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32662

      #3
      Originally posted by micksitup
      hi all,

      How can i get a subforms value to save into a table?

      the table only has 1 entry, so it should edit itm rather than add a new one
      Bind the form to the required table (RecordSource --> TableName)

      Comment

      Working...