PC Review


Reply
Thread Tools Rate Thread

connecting excel to a database

 
 
bhanu
Guest
Posts: n/a
 
      6th Jul 2007
how to prepare a form in excel so that it gets saved in the database
and we can fill it and send it to the database. and we can retrieve it
for future reference?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?c2N1YmFkaXZlcg==?=
Guest
Posts: n/a
 
      6th Jul 2007

Why not just create a form in Access?




"bhanu" wrote:

> how to prepare a form in excel so that it gets saved in the database
> and we can fill it and send it to the database. and we can retrieve it
> for future reference?
>
>

 
Reply With Quote
 
IUnderstandSomething
Guest
Posts: n/a
 
      6th Jul 2007
On Jul 6, 7:53 am, bhanu <bhanupriy...@gmail.com> wrote:
> how to prepare a form in excel so that it gets saved in the database
> and we can fill it and send it to the database. and we can retrieve it
> for future reference?


You make a field of tyoe OLE in a table. Make a form with this field.

Properties should be:
OLEType-Embedded
Sizemode Clip
DisplayType Icon
-Of course here you can play a little!

Make a button with this code:

Private Sub Command4_Click()
On Error GoTo Err_Command4_Click

With Me!OLE
.Enabled = True
.Locked = False
.Verb = acOLEVerbOpen
.Class = "Excel.Sheet"
.Action = acOLECreateEmbed
.Action = acOLEActivate
End With

Exit_Command4_Click:
Exit Sub

Err_Command4_Click:
MsgBox Err.Description
Resume Exit_Command4_Click

End Sub
Where OLE is the name of the control in your form.

-To make a new sheet - click the button
-To open an existing one doubleclikk the control

Sincerely

Hans Kristian Eide

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting My Access Database to Excel Tangier Microsoft Excel Discussion 1 15th Sep 2008 07:38 PM
Connecting to Access Database from Excel =?Utf-8?B?RmVpZmVp?= Microsoft Excel Programming 2 19th Feb 2007 07:24 PM
connecting to sql database from excel using file dsn =?Utf-8?B?TmF0ZSBGaXNoZXI=?= Microsoft Excel Programming 0 12th Feb 2007 01:26 PM
connecting database curopting excel =?Utf-8?B?QW5kcmUgS3J1Z2Vy?= Microsoft Excel Programming 0 4th Aug 2006 01:38 PM
Re: Connecting To a Excel Database David Lloyd Microsoft Excel Programming 0 14th Oct 2005 02:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:13 PM.