Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Open an Acees Form from Excel

Here's the situation:
I have an Excel Workbook related with an Access Database. I want to d
the following. Instructors will enter their ID in one field od th
workbook, push a button that will activate a SELECT * Tablename WHER
ID= 'the one entered'. I can manage all that but here's where I nee
the help. I need to open a form, in Access if posible, That will as
for the info of the new professor. How that can be done

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Open an Acees Form from Excel

This might be a help for getting data to and from Excel and Access: It
includes examples of using variables in SQL queries.
http://www.bygsoftware.com/examples/sql.html

Or you can get there from the "Excel with Access Databases" section on page:
http://www.bygsoftware.com/examples/examples.htm

It demonstrates how to use SQL in Excel's VBA to:

* create a database,
* create a table and add data to it,
* select data from a table,
* delete a table,
* delete a database.

DAO and ADO files available.

You can also download the demonstration file called "excelsql.zip".

The code is open and commented.


--
Regards
Andy Wiggins
www.BygSoftware.com
Home of "Save and BackUp",
"The Excel Auditor" and "Byg Tools for VBA"



"javydreamercsw " wrote in
message ...
Here's the situation:
I have an Excel Workbook related with an Access Database. I want to do
the following. Instructors will enter their ID in one field od the
workbook, push a button that will activate a SELECT * Tablename WHERE
ID= 'the one entered'. I can manage all that but here's where I need
the help. I need to open a form, in Access if posible, That will ask
for the info of the new professor. How that can be done?


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Open an Acees Form from Excel

When using Excel as a front end, think of MS Access as a boring old
Jet DBMS i.e. it provides data and nothing else. Forms and reports are
front end tasks, so if you aren't using MS Access as the UI you can
forget they even exist. Automating MS Access to show a form isn't
appropriate.

In broad terms, here's what you need to do:

• Get the user input within Excel e.g. via a cell/textbox on a
worksheet, the VBA InputBox function, a textbox on a userform, etc.
How? Google it.

• Create a 'stored procedure' in you database that will accept the
user input as a parameter and return the required rows based on your
SELECT query. How? Look up CREATE PROCEDURE in Jet/MS Access help.
Here's an example which takes two dates as parameters:

CREATE PROCEDURE
MyStoredProc (
start_date DATETIME,
end_date DATETIME
)
AS
SELECT
RefID,
DateEffective,
Earnings
FROM
EarningsHistory
WHERE
DateEffective
BETWEEN start_date AND end_date;

• Use a data access technology to run your stored procedu MS Query
and ADO are the popular choices for Excel. How? Again, google it. As a
hint for MS Query, here's what should appear in the SQL window to run
the above procedure with parameters:

{Call MyStoredProc('01 JAN 2001', '01 JAN 2004')}

--

javydreamercsw wrote in message ...
Here's the situation:
I have an Excel Workbook related with an Access Database. I want to do
the following. Instructors will enter their ID in one field od the
workbook, push a button that will activate a SELECT * Tablename WHERE
ID= 'the one entered'. I can manage all that but here's where I need
the help. I need to open a form, in Access if posible, That will ask
for the info of the new professor. How that can be done?


---
Message posted from http://www.ExcelForum.com/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I open excel template form in a shared file using vista? paultrvrs Excel Discussion (Misc queries) 1 November 3rd 09 07:25 PM
want form to open without seeing worksheet Ruth Excel Discussion (Misc queries) 5 November 13th 08 08:19 PM
Using a template form, advance a form number everytime you open ShoDan Excel Discussion (Misc queries) 1 January 31st 08 01:34 PM
how to open your workbook with a form gbpg Excel Discussion (Misc queries) 2 July 30th 07 03:02 AM
Open Form Automatically in Excel File Bejewell New Users to Excel 1 November 16th 05 06:18 PM


All times are GMT +1. The time now is 08:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"