Results 1 to 2 of 2
  1. #1
    Monterey_Manzer is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    164

    Automating "Append" Query with Parameters

    Hi Everyone,



    I am curious if it is possible to use VBA code to pass parameters to an Append query. Basically I'm trying to build a dashboard type system by which my users could add new records based on a new set of parameters. The users would enter these parameters by use of Input Boxes. I haven't started researching this because I've got a few projects going on right now which is sucking up all my time but I'm curious if anyone can tell me whether or not this is indeed possible or would I be wasting my time playing around with this. I would appreciate any thoughts or speculations any of you may have.

    Cheers!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Yes, a simple example showing 3 field types (text, date, number):

    CurrentDb.Execute "INSERT INTO tablename(fieldname1, fieldname2, fieldname3) VALUES('" & Me.textbox1 & "', #" & Me.textbox2 & "#, " & Me.textbox3 & ")"
    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.

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

Similar Threads

  1. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  2. Replies: 1
    Last Post: 08-23-2012, 08:32 AM
  3. Replies: 11
    Last Post: 03-29-2012, 02:32 PM
  4. Replies: 16
    Last Post: 07-22-2011, 09:23 AM
  5. UPDATE function "too few parameters"
    By eww in forum Programming
    Replies: 5
    Last Post: 05-11-2011, 09:38 AM

Tags for this Thread

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