Click here to Skip to main content
15,905,607 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPassing information between forms Pin
pj4FarEweDsf14-May-04 14:31
pj4FarEweDsf14-May-04 14:31 
GeneralRe: Passing information between forms Pin
Nick Seng14-May-04 15:28
Nick Seng14-May-04 15:28 
GeneralRe: Passing information between forms Pin
rubdub16-May-04 22:27
rubdub16-May-04 22:27 
GeneralRe: Passing information between forms Pin
pj4FarEweDsf17-May-04 5:31
pj4FarEweDsf17-May-04 5:31 
Generalrowstate changes when sybasecommandbuilder is created Pin
CodeAgnostic14-May-04 9:59
CodeAgnostic14-May-04 9:59 
GeneralConvert e to uppercase Pin
XGaMeS14-May-04 8:46
XGaMeS14-May-04 8:46 
GeneralRe: Convert e to uppercase Pin
Aaron Eldreth14-May-04 10:09
Aaron Eldreth14-May-04 10:09 
GeneralRe: Convert e to uppercase Pin
XGaMeS17-May-04 2:46
XGaMeS17-May-04 2:46 
Generalhelp sending a form to bottom Pin
Stanimir_Stoyanov14-May-04 6:37
Stanimir_Stoyanov14-May-04 6:37 
GeneralRe: help sending a form to bottom Pin
f6414-May-04 7:51
f6414-May-04 7:51 
Generalsending email base on radiobuttonlist selection Pin
devgeez14-May-04 5:49
devgeez14-May-04 5:49 
GeneralRe: sending email base on radiobuttonlist selection Pin
Mike Ellison14-May-04 6:34
Mike Ellison14-May-04 6:34 
GeneralRe: sending email base on radiobuttonlist selection Pin
devgeez21-May-04 3:41
devgeez21-May-04 3:41 
GeneralRe: sending email base on radiobuttonlist selection Pin
Mike Ellison21-May-04 4:21
Mike Ellison21-May-04 4:21 
GeneralRe: sending email base on radiobuttonlist selection Pin
devgeez21-May-04 4:31
devgeez21-May-04 4:31 
GeneralRe: sending email base on radiobuttonlist selection Pin
Mike Ellison21-May-04 6:28
Mike Ellison21-May-04 6:28 
GeneralFile Stream Headache Pin
BMS581914-May-04 5:01
BMS581914-May-04 5:01 
GeneralRe: File Stream Headache Pin
Anonymous16-May-04 11:11
Anonymous16-May-04 11:11 
GeneralRe: File Stream Headache - Permissions Problem ? Pin
BMS581917-May-04 3:34
BMS581917-May-04 3:34 
GeneralPjGrid.ocx - Dragging Tasks Pin
mac_hua14-May-04 3:30
mac_hua14-May-04 3:30 
GeneralSetup project for BHO Pin
Member 86274214-May-04 0:27
Member 86274214-May-04 0:27 
GeneralHelp....Datagrid and Ado question Pin
Anonymous13-May-04 23:38
Anonymous13-May-04 23:38 
Hi,

I have a question: How can I set the datasource of a datagrid by using codes? I've been using the properties on the right side to set it.

Then I also have a problem... Why is it that whenever I use:

adodc1.recordset.addnew
ado.Recordset.Fields(0) = Trim(txtname)
ado.Recordset.Fields(1) = Trim(txtage)
ado.Recordset.Update

the data that I save in a database is automatically displayed on the datagrid. But if I use:

Set adocon = New ADODB.Connection
Set adorset = New ADODB.Recordset
adocon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & "dbnames.mdb"
adorset.Open "Table2", adocon, adOpenKeyset, adLockOptimistic

adorset.AddNew
adorset.Fields(0) = Trim(txtname)
adorset.Fields(1) = Trim(txtage)
adorset.Update


the data that I save on a database don't appear automatically and it would only appear once I unload and reload my form or if I use

DTG.Columns(0) = gadors.Fields(0)
DTG.Columns(1) = gadors.Fields(1)
DTG.Columns(2) = gadors.Fields(2)
DTG.Columns(3) = gadors.Fields(3)

wherein the problem is that it overwrites the first record on a datagrid and once I unload and reload, that's the only time that the new record would be placed at the end.
I can't use the movenext and moveprevious properly as well whenever I use this type of setup.

Thanks....

GeneralHardware configuration Pin
pasho13-May-04 17:16
pasho13-May-04 17:16 
GeneralRe: Hardware configuration Pin
superwinsock13-May-04 22:31
superwinsock13-May-04 22:31 
GeneralRe: Hardware configuration Pin
Dave Kreskowiak14-May-04 8:11
mveDave Kreskowiak14-May-04 8:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.