Results 1 to 9 of 9

Thread: msflexgrid without data control

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    hk,china
    Posts
    4

    Unhappy

    dear friends,
    i have a problem when using vb6.0. i can only load the data from access onto the msflexgrid by data control.when i try to load the data to msflexgrid by writing several programme lines in form_load(), it fails.does anyone help me as i am hurry to hand in my homework.

    i want to ask if i use data control, can i search or edit the data on the msflexgrid.if can, how?

  2. #2
    Hyperactive Member Paul Warren's Avatar
    Join Date
    Jun 2000
    Location
    UK
    Posts
    282
    Have a look at this thread, it fills the grid and sizes the columns for you.

    http://forums.vb-world.net/showthrea...threadid=25701

    Post back here if you have any problems.
    That's Mr Mullet to you, you mulletless wonder.

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    hk,china
    Posts
    4
    Originally posted by Paul Warren
    Have a look at this thread, it fills the grid and sizes the columns for you.

    http://forums.vb-world.net/showthrea...threadid=25701

    Post back here if you have any problems.

  4. #4
    Hyperactive Member Paul Warren's Avatar
    Join Date
    Jun 2000
    Location
    UK
    Posts
    282
    Denise_lau_

    Is this a problem or are you just saying hello ?
    That's Mr Mullet to you, you mulletless wonder.

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    hk,china
    Posts
    4
    dear paul,
    i have tried the programme u suggested to me.but neither the grid is set nor the data is shown on the msflexgrid.instead, a warning box of"object required"arise in the "end sub" of the form_load().
    yours
    denise

  6. #6
    Hyperactive Member Paul Warren's Avatar
    Join Date
    Jun 2000
    Location
    UK
    Posts
    282
    Sorry - I jumped the gun on that last post.

    The example uses DAO so you will need the right version of the DAO library loaded to use it. Add a reference to it from the Project...References menu option. It's called Microsoft DAO Library 3.51 or 3.6, depending on the version of Access your talking to.

    Use 3.6 for Access 2000.

    Let me know if that doesn't fix the problem and I'll have a nother look.
    That's Mr Mullet to you, you mulletless wonder.

  7. #7

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    hk,china
    Posts
    4
    dear paul,
    sorry, i accidentally press the sumit button before entering anything.
    actually i have chosen the DAO 3.51 and the data is created in access 2000 but download it to access 97 (because the data in access 2000 can't be opened in vb 6.0 as access 2000 use jet 4.0 and vb 6.0 use jet 3.51 only.)actually , the data can be opened in the msflexgrid if i use a data control,but when i want to omit the data control and write the programme instead, no data is shown.
    or can use suggest what sort of grid should i use if i need to perform search ,edit in the data shown on the grid.
    yours,
    denise

  8. #8
    Hyperactive Member Paul Warren's Avatar
    Join Date
    Jun 2000
    Location
    UK
    Posts
    282
    I haven't really got time to look at this right now. I'll try to get back to you in the next few hours.
    That's Mr Mullet to you, you mulletless wonder.

  9. #9
    Hyperactive Member Paul Warren's Avatar
    Join Date
    Jun 2000
    Location
    UK
    Posts
    282
    I've had another look at this and it's possible that your flexgrid isn't called grdFields. I just made the same mistake when trying the code out again.

    Could you check the name first.
    That's Mr Mullet to you, you mulletless wonder.

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