Results 1 to 4 of 4
  1. #1
    thomd.olon is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2019
    Posts
    2

    how to make the data entered in the textbox transfer to the database using button

    I am starting my own database and I want to make a form that is interactive, I just want to know how to make the data entered in the textbox transfer to the my database using a button using vba/sql code.



    thank you so much in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    You set the form RecordSource property and set data controls ControlSource property. This is then a BOUND form with BOUND controls. No VBA/SQL needed. This is basic Access functionality. Have you completed an introductory tutorial book?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    thomd.olon is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2019
    Posts
    2
    Quote Originally Posted by June7 View Post
    You set the form RecordSource property and set data controls ControlSource property. This is then a BOUND form with BOUND controls. No VBA/SQL needed. This is basic Access functionality. Have you completed an introductory tutorial book?
    I might have skipped that part, thank you for letting me know..

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Just to expand on June7's response: Using Unbound Forms really does away with the basic function of Access, which is to facilitate RAD (Rapid Application Development) and should only be attempted by very experienced Access developers, and then only when/if a legitimate purpose requires it, and most situations don’t! You don't need Unbound Forms to

    1. Do Data Validation
    2. Prevent Duplicate Records
    3. Do Formatting of Data before it's Saved
    4. Decide whether or not to actually Save a New or Edited Record


    which are the most common reasons given. Nor are they needed for another dozen reasons I've seen people give!

    Several developers I know, experienced in Visual Basic database development and Access development, estimate that development, using Unbound Forms, by highly experienced developers, takes two to three times as long, using Unbound Forms, as it does when using Access and Bound Forms. That’s because with Bound Forms the Access Gnomes do the vast majority of the heavy lifting; with Unbound Forms the developer has to write code for everything...even the most mundane tasks!

    Bottom line is…with Bound Forms you end up writing code for a few specialized situations, such as #1-#4, as listed above…and with Unbound Forms you have to write code for virtually everything that needs to be done!

    If you insist on using Unbound Forms, you'd be far better off using a straight VB or C++ front end with a SQL Server or Oracle back end.

    • You can create an EXE file which gives total protection to your code/design
    • You can distribute the db to PCs without a copy of Access being on board
    • Your data security is far, far better than anything you can do in Access


    Don't misunderstand me...there are a few, specialized situations, where an Unbound Form is preferable...but anyone who routinely uses them for everything, has simply made a bad choice in deciding to work in Access.

    Linq ;0)>

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

Similar Threads

  1. Replies: 3
    Last Post: 12-19-2017, 04:32 PM
  2. Replies: 6
    Last Post: 02-26-2016, 05:28 AM
  3. Use option button to make textbox not visible
    By Stephenson in forum Programming
    Replies: 4
    Last Post: 10-05-2015, 03:40 PM
  4. Replies: 8
    Last Post: 04-12-2013, 08:59 PM
  5. Replies: 13
    Last Post: 09-14-2011, 07:19 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