Connecting Tech Pros Worldwide Forums | Help | Site Map

HELP in saving all information in a datagrid in vb6?

Newbie
 
Join Date: Sep 2009
Posts: 10
#1: Oct 18 '09
How to save all the information in a datagrid in just one command button, click, and it will automatically save in the table in access(student name,and student subjects will added and save in table ), regardless on how many records were bind in a datagrid.

im using dataenvironment in connecting my database MS Access 2007, hope you help me on this matter (please just a dataenvironment code) cause modules is too complicated for me..

im working with enrollment system and im stuck in this, student's subject's transaction, i want to save all subjects in my datagrid in just a single click of a command button.

kindly help me ASAP...

that's if your not busy and in a good mood...x)

thanks in advance... GOD bless... and more power... to you...

additional question?

for you, what is the simplest programming language now a days? cause i want to try it for sure... and i want to adapt that new trend programming language..


thanks a lot... sir/maam...


"And if you have a system related to vb6 college enrollment system,please kindly email me at spincer31069@yahoo.com your kindness is much appreciated..." don't worry sir/maam i will promise that i will not copy all you have made for your program i just want to know and analyze some codes that you made... x)

that's all thanks to the answers... note: it is better to give than to....receive... i mean it is better to share your precious knowledge than to keep it forever... that's one of my moto in life x)

--------

below i attach my image form to relate my problems...
Attached Thumbnails
sub.jpg  

Newbie
 
Join Date: Jul 2007
Posts: 6
#2: Oct 21 '09

re: HELP in saving all information in a datagrid in vb6?


'''' hope this will help

Private Sub Command1_Click()

dim DTL AS NEW ADODB.RECORDSET

If DTL.State = 1 Then DTL.Close

DTL.Open "select FieldName from Table Name", con, adOpenKeyset, adLockPessimistic

If DTL.RecordCount > 0 Then

Set DataGrid1.DataSource = DTL

End sub
Newbie
 
Join Date: Oct 2009
Posts: 12
#3: Oct 21 '09

re: HELP in saving all information in a datagrid in vb6?


How are you going to connect one desktop visual basic application to another visual basic application in a network?Please help me....
Newbie
 
Join Date: Oct 2009
Posts: 5
#4: Oct 24 '09

re: HELP in saving all information in a datagrid in vb6?


Pls, One more. I would like to display more than 500 icons into the form. Is there an easy way to do it. I know vb.net does not allow to create an array of variable. Can I create one PictureBox and divice it into several pieces.

Antigua Holidays
bra accessories
Reply