|
-
Aug 15th, 2000, 12:44 AM
#1
Thread Starter
New Member
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?
-
Aug 15th, 2000, 03:17 AM
#2
Hyperactive Member
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.
-
Aug 22nd, 2000, 03:58 AM
#3
Thread Starter
New Member
-
Aug 22nd, 2000, 04:06 AM
#4
Hyperactive Member
Denise_lau_
Is this a problem or are you just saying hello ?
That's Mr Mullet to you, you mulletless wonder.
-
Aug 22nd, 2000, 04:06 AM
#5
Thread Starter
New Member
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
-
Aug 22nd, 2000, 04:11 AM
#6
Hyperactive Member
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.
-
Aug 22nd, 2000, 04:22 AM
#7
Thread Starter
New Member
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
-
Aug 22nd, 2000, 04:49 AM
#8
Hyperactive Member
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.
-
Aug 22nd, 2000, 05:19 AM
#9
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|