Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Icons on the status area Pin
codevisio8-Jan-04 2:40
codevisio8-Jan-04 2:40 
GeneralPdf2Text Pin
Anonymous8-Jan-04 0:17
Anonymous8-Jan-04 0:17 
GeneralRe: Pdf2Text Pin
Selvam R8-Jan-04 1:52
professionalSelvam R8-Jan-04 1:52 
GeneralPrinter protocol Pin
auur7-Jan-04 23:56
auur7-Jan-04 23:56 
GeneralCComboBox class Pin
Tonnystar7-Jan-04 23:52
Tonnystar7-Jan-04 23:52 
GeneralRe: CComboBox class Pin
2249178-Jan-04 1:43
2249178-Jan-04 1:43 
GeneralCComboBox class Pin
Tonnystar7-Jan-04 23:50
Tonnystar7-Jan-04 23:50 
GeneralInterfacing with MS Access Pin
mcsherry7-Jan-04 23:38
mcsherry7-Jan-04 23:38 
Hi,

I've written a program in Visual C++ 6.0 that periodically outputs data to a text file. Now, however I need to output this data to a MS Access database. I've created a link to Access using the Class Wizard to autogenerate code from 'MSACC9.OLB'. I've then created an instance of _Application which then allows me to open/create a database.
The problems that I have are:

1) when Access starts up, as well as opening the specified database it also displays the 'Select Database' dialog. How do I get rid of this?

2) Now that I have my database open how do I go about opening a table and then inserting data into it?
I've created a DoCmd object which I attach to my _Application object, however when I call OpenTable I get 'member not found' error even though the table exists. This may be due to my lack of understanding of the VARIANT type, as I've only created it and then called SetString (passing in my table name) on it.

many thanks,
Andy

GeneralRe: Interfacing with MS Access Pin
BadJerry7-Jan-04 23:57
BadJerry7-Jan-04 23:57 
GeneralRe: Interfacing with MS Access Pin
mcsherry8-Jan-04 0:22
mcsherry8-Jan-04 0:22 
GeneralRe: Interfacing with MS Access Pin
Selvam R8-Jan-04 0:16
professionalSelvam R8-Jan-04 0:16 
QuestionMay I Ask? Pin
skylonely7-Jan-04 23:15
skylonely7-Jan-04 23:15 
AnswerRe: May I Ask? Pin
Cedric Moonen7-Jan-04 23:34
Cedric Moonen7-Jan-04 23:34 
GeneralRe: May I Ask? Pin
skylonely7-Jan-04 23:54
skylonely7-Jan-04 23:54 
QuestionHow can I access to files with .DBF extension ? Pin
Qadddd7-Jan-04 22:51
Qadddd7-Jan-04 22:51 
AnswerRe: How can I access to files with .DBF extension ? Pin
BadJerry8-Jan-04 0:03
BadJerry8-Jan-04 0:03 
GeneralRe: How can I access to files with .DBF extension ? Pin
Qadddd8-Jan-04 3:20
Qadddd8-Jan-04 3:20 
GeneralRe: How can I access to files with .DBF extension ? Pin
BadJerry8-Jan-04 3:28
BadJerry8-Jan-04 3:28 
GeneralRe: How can I access to files with .DBF extension ? Pin
Qadddd8-Jan-04 3:46
Qadddd8-Jan-04 3:46 
GeneralRe: How can I access to files with .DBF extension ? Pin
Qadddd8-Jan-04 13:53
Qadddd8-Jan-04 13:53 
GeneralRe: How can I access to files with .DBF extension ? Pin
BadJerry8-Jan-04 22:36
BadJerry8-Jan-04 22:36 
GeneralRe: How can I access to files with .DBF extension ? Pin
Qadddd8-Jan-04 23:35
Qadddd8-Jan-04 23:35 
GeneralRe: How can I access to files with .DBF extension ? Pin
BadJerry9-Jan-04 0:10
BadJerry9-Jan-04 0:10 
GeneralRe: How can I access to files with .DBF extension ? Pin
Qadddd9-Jan-04 4:28
Qadddd9-Jan-04 4:28 
GeneralRe: How can I access to files with .DBF extension ? Pin
BadJerry9-Jan-04 4:40
BadJerry9-Jan-04 4:40 

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.