dil4VB
10-16-2004, 09:53 PM
i am working with databases.
members of this forum have helped me figure out how to create a Database file, and create a table in that database using SQL. :) But in order to avoid errors i need to check the following
1. whether a database exists at a location or not?
2. whether a table exists in a database or not?
3. whether a field exists in a table or not?
how can i do it? :(
P.S. i use SQL statements in code (INSERT INTO, SELECT etc...)
i am just using the code posted by someone in a forum as an answer to my question because i dont know about SQL and Jet databases in detail yet. So please explain your answer to me a bit elaborately.
thanks in advance
members of this forum have helped me figure out how to create a Database file, and create a table in that database using SQL. :) But in order to avoid errors i need to check the following
1. whether a database exists at a location or not?
2. whether a table exists in a database or not?
3. whether a field exists in a table or not?
how can i do it? :(
P.S. i use SQL statements in code (INSERT INTO, SELECT etc...)
i am just using the code posted by someone in a forum as an answer to my question because i dont know about SQL and Jet databases in detail yet. So please explain your answer to me a bit elaborately.
thanks in advance