Results 1 to 3 of 3
  1. #1
    bbeernaert is offline Novice
    Windows XP Access 2000
    Join Date
    Aug 2010
    Location
    Belgium
    Posts
    11

    Question Selection data in table

    Hello

    I would like to have de vba code for selecting a part of a row.

    example:
    A B C D
    1 aef dadf daf adf
    2 aef afd daf afe
    3

    I can withdraw data from excel to put it in a table in access.
    I write for every new record a new line.
    I would want to easy up this a little bit...




    planset As New ADODB.Recordset

    planset!MaVM = appXL.Worksheets("sheet1").Range("c47").Value


    I would like to select a whole range in excel and than paste it as a part of a row in access with vba code.

    Can anyone help me please ???

    thx

  2. #2
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,046
    Hi,

    if you want a different approach you can link the Excel area to the Access database using a TransferSpreadsheet command like:

    DoCmd.TransferSpreadsheet acLink, acSpreadsheetTypeExcel12Xml, "tblMyExcelData", "strPathFilename", False, "A2:G3"

    and then handle the data transfer by action queries

    greetings
    NG

  3. #3
    bbeernaert is offline Novice
    Windows XP Access 2000
    Join Date
    Aug 2010
    Location
    Belgium
    Posts
    11
    thx

    I m gonna try

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

Similar Threads

  1. Replies: 1
    Last Post: 05-25-2010, 02:58 PM
  2. Replies: 13
    Last Post: 11-25-2009, 03:10 PM
  3. Replies: 0
    Last Post: 08-01-2009, 12:43 PM
  4. Data selection
    By cesander in forum Forms
    Replies: 0
    Last Post: 09-18-2008, 02:24 PM
  5. Unmatched data entered with data in table
    By boreda in forum Access
    Replies: 0
    Last Post: 07-28-2006, 09:11 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