MS Access VB Code help   Independent houses near kukatpally | Apartments in Pragathi Nagar | AndhraVaani.com | Log Out | Topics | Search
Register | Edit Profile

Bewarse Talk � Archives � Cine Talk - Reviews, Gossips, Insider Info etc. � Archive through August 10, 2006 � MS Access VB Code help � Previous Next �

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Penkonda_tiger
Bewarse
Username: Penkonda_tiger

Post Number: 2062
Registered: 06-2005
Posted From: 62.234.167.180
Posted on Wednesday, August 09, 2006 - 11:38 am:   Edit PostDelete PostView Post/Check IP

Oki doki .. good to know its working
Top of pagePrevious messageNext messageBottom of page Link to this message

Bommarillu
Pilla Bewarse
Username: Bommarillu

Post Number: 392
Registered: 07-2005
Posted From: 12.41.255.10
Posted on Wednesday, August 09, 2006 - 11:31 am:   Edit PostDelete PostView Post/Check IP

it worked. thanks pt.

Kalki: nadi ade problem
Top of pagePrevious messageNext messageBottom of page Link to this message

Kalki
Desanike Pedda Bewarse
Username: Kalki

Post Number: 6734
Registered: 04-2005
Posted From: 129.33.49.252
Posted on Wednesday, August 09, 2006 - 9:49 am:   Edit PostDelete PostView Post/Check IP

VB manaku raadu gaani MS access occhu
OKKA MAGADU ...The ONE and ONLY
Top of pagePrevious messageNext messageBottom of page Link to this message

Bommarillu
Pilla Bewarse
Username: Bommarillu

Post Number: 391
Registered: 07-2005
Posted From: 12.41.255.10
Posted on Wednesday, August 09, 2006 - 9:47 am:   Edit PostDelete PostView Post/Check IP

okay let me try using that. thanks...
Top of pagePrevious messageNext messageBottom of page Link to this message

Penkonda_tiger
Bewarse
Username: Penkonda_tiger

Post Number: 2060
Registered: 06-2005
Posted From: 62.234.167.180
Posted on Wednesday, August 09, 2006 - 9:44 am:   Edit PostDelete PostView Post/Check IP

aha then you have to use a RecordSet
Top of pagePrevious messageNext messageBottom of page Link to this message

Penkonda_tiger
Bewarse
Username: Penkonda_tiger

Post Number: 2059
Registered: 06-2005
Posted From: 62.234.167.180
Posted on Wednesday, August 09, 2006 - 9:42 am:   Edit PostDelete PostView Post/Check IP

Dim cn As ADODB.Connection

'Create a new ADO Connection object
Set cn = New ADODB.Connection

With cn
.Provider = "Microsoft.Access.OLEDB.10.0"
.Properties("Data Provider").Value = "Microsoft.Jet.OLEDB.4.0" .Properties("Data Source").Value = _ "C:\Program Files\Microsoft Office\Office10" & _ "\Samples\Northwind.mdb"
.Open
.execute(“ select Table1 into table2”)
End With



Set cn = Nothing
Top of pagePrevious messageNext messageBottom of page Link to this message

Bommarillu
Pilla Bewarse
Username: Bommarillu

Post Number: 390
Registered: 07-2005
Posted From: 12.41.255.10
Posted on Wednesday, August 09, 2006 - 9:31 am:   Edit PostDelete PostView Post/Check IP

It's not as simple PT, my problem is that I have to loop thru the fields of the table 1 so that i get the correct values into table2... so help

I'm trying something else. let me see if that works.
Top of pagePrevious messageNext messageBottom of page Link to this message

Gaali
Desanike Pedda Bewarse
Username: Gaali

Post Number: 11078
Registered: 03-2004
Posted From: 199.26.230.102
Posted on Wednesday, August 09, 2006 - 9:25 am:   Edit PostDelete PostView Post/Check IP

PT where are you? Hemu gaadaithe yeepaatiki rendu diff solutions yicheevaadu.
Top of pagePrevious messageNext messageBottom of page Link to this message

Gaali
Desanike Pedda Bewarse
Username: Gaali

Post Number: 11077
Registered: 03-2004
Posted From: 199.26.230.102
Posted on Wednesday, August 09, 2006 - 9:22 am:   Edit PostDelete PostView Post/Check IP

ODBC yemanna setup cheyyalemo PT mama.
Top of pagePrevious messageNext messageBottom of page Link to this message

Bommarillu
Pilla Bewarse
Username: Bommarillu

Post Number: 389
Registered: 07-2005
Posted From: 12.41.255.10
Posted on Wednesday, August 09, 2006 - 9:21 am:   Edit PostDelete PostView Post/Check IP

using Vb6.

So far I have the following code

Sub DB1DDE()
Dim intChan1 As Integer, intChan2 As Integer, intChan3 As Integer
Dim strResp1 As Variant, strResp2 As Variant, strResp3 As Variant

' In a Visual Basic module, get data from IndustryCode3 table
' in db1.mdb.
' Make sure database is open first.
intChan1 = DDEInitiate("MSAccess", "db1;TABLE tblIndustryCode3")
intChan2 = DDEInitiate("MSAccess", "db1;QUERY Query 1")

strResp1 = DDERequest(intChan1, "All")
strResp2 = DDERequest(intChan2, "All")

DDETerminate intChan1
DDETerminate intChan2

' Insert data into a table
' this is where I'm stuck

End Sub
Top of pagePrevious messageNext messageBottom of page Link to this message

Penkonda_tiger
Bewarse
Username: Penkonda_tiger

Post Number: 2056
Registered: 06-2005
Posted From: 62.234.167.180
Posted on Wednesday, August 09, 2006 - 9:20 am:   Edit PostDelete PostView Post/Check IP

mamma use an ADO object .. define the connection ... a

call the Execute method with following sql

"Select into table1 from table2"

if you want i can write a small function for u
Top of pagePrevious messageNext messageBottom of page Link to this message

Gaali
Desanike Pedda Bewarse
Username: Gaali

Post Number: 11074
Registered: 03-2004
Posted From: 199.26.230.102
Posted on Wednesday, August 09, 2006 - 9:17 am:   Edit PostDelete PostView Post/Check IP

VB code aa?

Which version of VB are you using?
Top of pagePrevious messageNext messageBottom of page Link to this message

Bommarillu
Pilla Bewarse
Username: Bommarillu

Post Number: 388
Registered: 07-2005
Posted From: 12.41.255.10
Posted on Wednesday, August 09, 2006 - 9:16 am:   Edit PostDelete PostView Post/Check IP

I have a table with data. how do i take this data and insert into another table using VB Code. Please help.