+ Reply to Thread
Results 1 to 3 of 3

insert data into mdb by loop through the field name

  1. #1
    Registered User
    Join Date
    07-16-2008
    Location
    malaysia
    Posts
    6

    Question insert data into mdb by loop through the field name

    i export the excel data into mdb database using the follow code, it works fine

    Please Login or Register  to view this content.

    I wish to make a loop because i have unlimited of same FieldName type.
    Here i replace the field name with a string (CO1), try to loop the data and insert into database but failed.

    Please Login or Register  to view this content.
    The error is

    Run-time error '3265'
    Item can't be found in the collection corresponding to the requested name or ordinal

    How to do that, thank guys
    regards,
    kimyap

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    You need to use an alternatiove syntax:

    Please Login or Register  to view this content.
    Richard

  3. #3
    Registered User
    Join Date
    07-16-2008
    Location
    malaysia
    Posts
    6
    Hi Richard,

    Thanks, its works!

    Quote Originally Posted by RichardSchollar
    Hi

    You need to use an alternatiove syntax:

    Please Login or Register  to view this content.
    Richard
    Last edited by kimyap; 07-24-2008 at 05:23 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1