Click here to Skip to main content
15,886,873 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: I need help please !!!! Pin
Suresh Prasad1-Dec-04 6:59
Suresh Prasad1-Dec-04 6:59 
GeneralRe: I need help please !!!! Pin
Dave Kreskowiak1-Dec-04 7:24
mveDave Kreskowiak1-Dec-04 7:24 
GeneralRe: I need help please !!!! Pin
Suresh Prasad1-Dec-04 7:36
Suresh Prasad1-Dec-04 7:36 
GeneralRe: I need help please !!!! Pin
Dave Kreskowiak1-Dec-04 11:48
mveDave Kreskowiak1-Dec-04 11:48 
GeneralRe: I need help please !!!! Pin
Suresh Prasad1-Dec-04 12:00
Suresh Prasad1-Dec-04 12:00 
GeneralRe: I need help please !!!! Pin
Dave Kreskowiak2-Dec-04 1:10
mveDave Kreskowiak2-Dec-04 1:10 
GeneralRe: I need help please !!!! Pin
Suresh Prasad2-Dec-04 6:38
Suresh Prasad2-Dec-04 6:38 
GeneralRe: I need help please !!!! Pin
Mekong River2-Dec-04 10:34
Mekong River2-Dec-04 10:34 
Suresh Prasad wrote:
The Microsoft Jet databse engine cannot find the input table or query 'mySQL2'. Make sure it exists and that its name is spelled correctly.

I think something problem with your string. In the code mySQL2 is the SQL statement that declare above and your system try to look in the database as the table. It look like this because write this code:

Suresh Prasad wrote:
mySQL1 = "SELECT * INTO [tblCutomer] FROM [mySQL2]"

look at the bold text that you write, your system will look into your database for table mySQL2. I'm not sure what you want to do with the above SELECT statement but what i guest is you try to insert the data that you want to import in your system from the result of the data that you select. As far as I know, if the structure of add the new record in datase is INSERT INTO not SELECT INTO... (not sure too). But I just suggest you that try to use loop (but it could take some time to do that) to read the record one by one from the source then insert it in your database. This is the concept only try to do it by yourself and let me know if you face any problem.

Suresh Prasad wrote:
mySQL1 = "SELECT * INTO [tblCutomer] FROM [mySQL2]"

Con1.Execute mySQL1

Set Con1 = Nothing
Set Con2 = Nothing
Con2.Close
End Sub


On the other hand, your code above did not close the Con1 and Con2 connection object. I think a good practice you should close it first then set it to nothing.



A thousand mile of journey, begin with the first step.

APO-CEDC
Save Children Norway-Cambodia Office

GeneralRe: I need help please !!!! Pin
Suresh Prasad3-Dec-04 7:00
Suresh Prasad3-Dec-04 7:00 
GeneralRe: I need help please !!!! Pin
Dave Kreskowiak3-Dec-04 5:44
mveDave Kreskowiak3-Dec-04 5:44 
GeneralProblema pri sozdanii controla Pin
RendeRRR1-Dec-04 3:47
RendeRRR1-Dec-04 3:47 
GeneralRe: Problema pri sozdanii controla Pin
Dave Kreskowiak1-Dec-04 4:41
mveDave Kreskowiak1-Dec-04 4:41 
Generalemail Pin
Mohammad Daba'an1-Dec-04 2:13
Mohammad Daba'an1-Dec-04 2:13 
GeneralRe: email Pin
Dave Kreskowiak1-Dec-04 3:30
mveDave Kreskowiak1-Dec-04 3:30 
GeneralRe: email Pin
Mekong River2-Dec-04 10:39
Mekong River2-Dec-04 10:39 
GeneralPackage and Deployment Pin
nitin_ion1-Dec-04 0:27
nitin_ion1-Dec-04 0:27 
GeneralRe: Package and Deployment Pin
Dave Kreskowiak1-Dec-04 3:26
mveDave Kreskowiak1-Dec-04 3:26 
GeneralAbout GUID Pin
iamalik30-Nov-04 19:28
professionaliamalik30-Nov-04 19:28 
GeneralRe: About GUID Pin
Tom John30-Nov-04 22:46
Tom John30-Nov-04 22:46 
GeneralAnother Problem Pin
Tech 4 a dummy30-Nov-04 18:03
Tech 4 a dummy30-Nov-04 18:03 
GeneralRe: Another Problem Pin
Tom John30-Nov-04 22:28
Tom John30-Nov-04 22:28 
GeneralRe: Another Problem Pin
Dave Kreskowiak1-Dec-04 1:05
mveDave Kreskowiak1-Dec-04 1:05 
GeneralRe: Another Problem Pin
Tom John1-Dec-04 1:18
Tom John1-Dec-04 1:18 
GeneralRe: Another Problem Pin
Colin Angus Mackay1-Dec-04 3:09
Colin Angus Mackay1-Dec-04 3:09 
Questionwhat's wrong with this code ? Pin
bahruddina30-Nov-04 16:47
bahruddina30-Nov-04 16:47 

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.