User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 456,589 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,586 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 3932 | Replies: 3
Reply
Join Date: Jun 2006
Posts: 67
Reputation: agrothe is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 9
agrothe's Avatar
agrothe agrothe is offline Offline
Junior Poster in Training

start new row in datagrid, msflexgrid

  #1  
Nov 1st, 2007
I must be getting soft....

How the heck to do I programmatically add new rows to a datagrid / flexgrid or whatever grid using VBA?

It's not bound to anything and I'm trying to add data on the fly. Any ideas?
------------------------------------------------------------
ConnectNL Directory | NLTourist | Free eLearing Courses
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2007
Posts: 76
Reputation: anto_nee is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
anto_nee anto_nee is offline Offline
Junior Poster in Training

Re: start new row in datagrid, msflexgrid

  #2  
Nov 1st, 2007
can use flexgrid.rows=flexgrid.rows+1

let me know wht the exact problem do u have
Reply With Quote  
Join Date: Jun 2006
Posts: 67
Reputation: agrothe is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 9
agrothe's Avatar
agrothe agrothe is offline Offline
Junior Poster in Training

Re: start new row in datagrid, msflexgrid

  #3  
Nov 2nd, 2007
Originally Posted by anto_nee View Post
can use flexgrid.rows=flexgrid.rows+1

let me know wht the exact problem do u have


Sorry, forgot to say that this is an Office VBA application, not straight VB. It's a cinche in VB 6, but in Access 2003, the datagrid or flexgrid controls seam to only allow additions and deletions when bound to a table.

I'm trying to add rows without binding the control. I'll try your code anyway in hopes it will work when I get back to my production computer...
------------------------------------------------------------
ConnectNL Directory | NLTourist | Free eLearing Courses
Reply With Quote  
Join Date: Jun 2006
Posts: 67
Reputation: agrothe is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 9
agrothe's Avatar
agrothe agrothe is offline Offline
Junior Poster in Training

Re: start new row in datagrid, msflexgrid

  #4  
Nov 3rd, 2007
anto_nee, thats exactly right. Problem with Access is it doesn't give you all the properties in the properties drop down, and of course after a while we get lazy and forget all the properties available to us.
------------------------------------------------------------
ConnectNL Directory | NLTourist | Free eLearing Courses
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 6:39 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC