Opening up a Access Database, & putting the proper fields into their repsective text boxes. 
Author Message
 Opening up a Access Database, & putting the proper fields into their repsective text boxes.

Hello everyone, and thanks for taking the time to read this :)

I'm a beginning Visual Basic programmer, and VC++ programmer as well.

I'm writing a VB 4.0 program, and am not using the data control.  I dropped
the common dialog control on the form, and I can get the FileOpen to work
properly in the sense that it does come up, and if I hit ok, or cancel,
focus returns to my main form.

I have two questions, and of course feel free to answer either or just one
(or neither :)!)

Once I have selected the file from the common dialog box, (and hit "OK")
how to I read back the file name, and send the contents of the table to
each text box?  I have no code written for this yet, since I'm stuck,and to
be honest, I'm not sure how to declare that I'm using a Database since I've
seen conflicting code.  PLEASE HELP!!! :)

Next question:  I have a command button that invokes the print dialog box,
and in turn when pressing ok, prints the contents of a RTB control (my
resume)  However when sent to the Win 95 print spooler for the
corresponding printer, it just sits there, and doesn't print.  I can't
delete the file, nor will it print.  It seems that the printer just locks
up.   arggggh!   (hehehe)

Thanks for any help that you may have!

P.S. Jay, I copied you this message, in case you hadn't subscribed to this
newsgroup.  Eventually, it may help you out (IF) you ever get stuck!  :)
If not, it's got some cool stuff!

-Respectfully,
Tony Arguelles
--
 /--------------------------------------------------------------------------
-------\
|  THERE IS NO BETTER THAN RICKSON GRACIE         |
 \--------------------------------------------------------------------------
-------/



Sun, 07 Feb 1999 03:00:00 GMT  
 Opening up a Access Database, & putting the proper fields into their repsective text boxes.

Quote:

> Hello everyone, and thanks for taking the time to read this :)

> I'm a beginning Visual Basic programmer, and VC++ programmer as well.

> I'm writing a VB 4.0 program, and am not using the data control.  I dropped
> the common dialog control on the form, and I can get the FileOpen to work
> properly in the sense that it does come up, and if I hit ok, or cancel,
> focus returns to my main form.

> I have two questions, and of course feel free to answer either or just one
> (or neither :)!)

> Once I have selected the file from the common dialog box, (and hit "OK")
> how to I read back the file name, and send the contents of the table to
> each text box?  I have no code written for this yet, since I'm stuck,and to
> be honest, I'm not sure how to declare that I'm using a Database since I've
> seen conflicting code.  PLEASE HELP!!! :)

        FileDialog.Filename will hold your file name.  Then,

        OpenDatabase(FileDialog.Filename)  will open the database file.  
Syntax may be off, but check the help files.    

Quote:

> Next question:  I have a command button that invokes the print dialog box,
> and in turn when pressing ok, prints the contents of a RTB control (my
> resume)  However when sent to the Win 95 print spooler for the
> corresponding printer, it just sits there, and doesn't print.  I can't
> delete the file, nor will it print.  It seems that the printer just locks
> up.   arggggh!   (hehehe)

        Did you do Printer.EndDoc?

--

Thanks,
Dave Verschleiser
Q&D Software Development - http://www.q-d.com
Creators of WebForms and WebMania!

=======================================================
For the best SHAREWARE on the Net, check out:

** The Shareware Central Interactive Catalog **
** http://www.q-d.com/swc.htm **

Shareware authors -- find out how to obtain a listing!
=======================================================



Tue, 09 Feb 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Can't edit fields after opening database with Access 7.0

2. Put a file on a database field

3. Put a file on a database field

4. VBA ups & downs

5. vba ups & downs

6. Putting a .BMP into an access BINARY field from within Vis Basic

7. ADO how to determine if a access database field is a primary key field

8. How to modified existing field and add new field in existing table for Access database

9. Unable to put Access database into Briefcase

10. Take the values of an Outlook form and put into Access Database

11. Access 2002 Database - How To Put On Web

12. Putting Icons into an Access Database

 

 
Powered by phpBB® Forum Software