Title pretty much says it all. We're forced to use 15 year-old software in college, and I don't have the time to learn a piece of software on my own, not to mention how slow it'd run on the computers in college. VB6 itself barely runs.
Now, we were barely taught to code, with the first language we were taught being Pascal, and now VB6 (bearing in mind this is 2015!).
So, with barely any knowledge and what little information I could find on the internet, I tried this horrible line of code:
frm_menu.dbMain.Execute "if(exists(select * from INFORMATION_SCHEMA.TABLES where TABLE_NAME != 'fencer' )) begin create table fencer(<insert fields here>) end"
frm_menu being the form the database variable called dbMain is located. 'fencer' is the name of the table.
Of course, the <insert fields here>
I have just added because I have a massive amount of fields, but the syntax is fine and has been tested.
I haven't a clue what information_schema is, and research doesn't help and I don't have too much time to try and understand it.
VB6 throws the following error:
Runtime Error '3078' The Microsoft Jet Database Engine cannot find the input table or query (line >of code stated above). Make sure it exists and its name is spelled correctly.
Unfortunately, being taught by such incompetent teachers has led to me being in the dark with no time to fix it.
If anybody could provide any advice or help I'd be greatly appreciative.
Thanks.