Results 1 to 4 of 4
  1. #1
    RAJESHKUMAR R is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    48

    ExcelSheet Data to Transfer to Access Table Via Userform Command Button…

    Dear Friends,

    I have a Folder Named As “Kitting” Insider the Folder

    1. There is an Excel File Named As” Material Receipts & Issuance Tracking” available below attachment as well

    2. There is an Access File Named As”Kitting_Database”

    In Excel Workbook “Database” Worksheet There are 18 Columns different data’s are available…

    Similar table available in my access file as well, the name of the table is “HISTORY”

    In Excel “UserForm1”… Please Refer “CommandButton1 (Caption : “Transfer To Database”) There are coding to transfer the excel data into access “HISTORY” Table… which is not working and I unable to fix it as well…



    Could you please suggest me to clear those codes…?

    Thanks & regards,
    Rajeshkumar R
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Have you EVEN tried to walk through the code? , as oSelect is commented out and not even declared?

    You should have Option Explicit at the top of every module, Excel or Access

    All there is in the zip is the excel file, so not much good to anyone as I cannot walk through the code either?

    Edit:
    Why not just use the TransferSpreadSheet command?

    https://docs.microsoft.com/en-us/off...ferspreadsheet
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    @RAJESHKUMAR

    In case you don't know about debugging code, maybe this will help you.
    See Debugging VBA Code for methods for debugging VBA code.

  4. #4
    RAJESHKUMAR R is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    48
    Dear Welshgasman & ssanfu,

    Thanks for your Input, I shall work based on your Input and try to figure out a way to fix my subjected Issue…

    Thanks & Regards,
    Rajeshkumar R

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

Similar Threads

  1. Replies: 3
    Last Post: 03-29-2017, 05:21 AM
  2. Replies: 9
    Last Post: 03-16-2014, 02:30 PM
  3. Replies: 12
    Last Post: 09-13-2012, 12:07 PM
  4. Command button to input data in a table
    By wilsgaard in forum Forms
    Replies: 1
    Last Post: 08-07-2011, 07:59 PM
  5. Button Command to Transfer Spreadsheet
    By diane802 in forum Programming
    Replies: 3
    Last Post: 02-10-2010, 09:26 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