Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
| Search | Today's Posts | Mark Forums Read
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 17th, 2004, 05:55 AM
Registered User
Join Date: Apr 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I create a query to database file by code.

How can I create a query to database file by code.

I can't get QueryDef to work cause my database connection is type of "connection" not "database"

Public db As Database <-- not

instead I'm using
Public db As Connection

It is esy to create tables with "CREATE TABLE" sql command.
Can't figure out how create QUERY.

EDIT: I working with a access database
Other solution might also be copying a query from un other database file but how would that then be done?

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create database (.mdb) file in vb6 code mrleokarthik Pro VB 6 13 August 7th, 2009 11:39 AM
Output Query to txt file from SQL Query everest SQL Server 2005 4 November 22nd, 2007 01:49 AM
Possible to query a System Database File (.sdb) dr185026 SQL Language 0 November 1st, 2006 02:17 PM
Can anyone create this query for me??????????? avats SQL Language 1 August 23rd, 2005 01:07 PM
code to copy a query recordset to a file Ivan Access VBA 9 October 31st, 2003 06:50 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.