Results 1 to 6 of 6

Thread: Good ideas and samples needed!

  1. #1

    Thread Starter
    Lively Member dadazhu's Avatar
    Join Date
    Oct 2001
    Location
    Opera House
    Posts
    126

    Thumbs down Good ideas and samples needed!

    Hi,

    Is there anyone can help me out? Only one weeks left!

    I am doing a school reporting project which will import student data from a Ms EXCEL spreadsheet to access and allow user to add more data in, at the end generate a student report.

    The solution I am thinking is,
    I have to import whole school student data from one spreadsheet, and separate them base on classes, every class contains its students. One teacher can only handle one class students as one supervisor can handle five class students.
    Also, the teachers are allow to bring his/her class data back home to process report at PC, and come back with updated data.

    I don't know how to import data from excel to access to create things like that. And I am thinking to use excel to be part of database in my program, is this possible?
    I very need any good idea and prefer some samples regarding to imporing data from excel to access.

    Any suggestion and help appreciated in advance!

    dadazhu
    Last edited by dadazhu; Oct 24th, 2001 at 02:59 AM.
    I wish 49.9999999% of my dreams have come true

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Hi dadazhu - taken me a little while to do this sample I admit - I'll explain why in the following post, but please try this sample first to see if it works on your PC - please let me know if it does or doesn't as I'd be very interested.

    Cheers,
    Alex
    Last edited by alex_read; Oct 26th, 2001 at 05:40 AM.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Okay, I had a loop set up (you can see wheree I've changed the coding in this one as I surrounded it with "##############" symbols), which uses the RECORDCOUNT property of DAO to tell me "okay, there are x number of rows found in the database table".
    This one's got an extra loop set up to let me know this number, and doesn't use the recordcount property so it'll work if the one above is ~£@*/!!!
    Attached Files Attached Files

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  5. #5

    Thread Starter
    Lively Member dadazhu's Avatar
    Join Date
    Oct 2001
    Location
    Opera House
    Posts
    126
    Thank you very much ! alex_read
    I wish 49.9999999% of my dreams have come true

  6. #6
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    No problem, thanks.
    I've just updated the first one which'll save you some lines of code now it's working.

    Thanks to Jamie, apparently you have to call the recordset.movelast function just before you call on the recordcount property to get this to return the proper number.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

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



Click Here to Expand Forum to Full Width