hardhitter06
Registered User.
- Local time
- Today, 03:13
- Joined
- Dec 21, 2006
- Messages
- 600
Hey Guys,
Access 2003.
I have a database that consists of one table and a input form. At the end of each month, a specific user will have to publish all of the records to a website in a spreadsheet templet.
So I dunno if this is the most logical or not, but on my form, I have a button that runs the query so it's in spreadsheet form. I also tied in opening Excel itself so this one user can copy and paste into excel.
What would be perfect is for Access to open up the specific document so that this one user can just copy and paste without having to locate the specific document and open it.
What would be even greater though, is for this input form to store directly into an excel document so that all this sole user would have to do is save and publish the document.
Here is the code I have for this button:
rivate Sub Command13_Click()
On Error GoTo Err_Command13_Click
Dim stDocName As String
Dim oApp As Object
Set oApp = CreateObject("Excel.Application")
oApp.Visible = True
'Only XL 97 supports UserControl Property
On Error Resume Next
oApp.UserControl = True
stDocName = "QryMain"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command13_Click:
Exit Sub
Err_Command13_Click:
MsgBox Err.Description
Resume Exit_Command13_Click
End Sub
Let me know if this is possible or if there is a more logical idea out there..Thank you in advance.
Access 2003.
I have a database that consists of one table and a input form. At the end of each month, a specific user will have to publish all of the records to a website in a spreadsheet templet.
So I dunno if this is the most logical or not, but on my form, I have a button that runs the query so it's in spreadsheet form. I also tied in opening Excel itself so this one user can copy and paste into excel.
What would be perfect is for Access to open up the specific document so that this one user can just copy and paste without having to locate the specific document and open it.
What would be even greater though, is for this input form to store directly into an excel document so that all this sole user would have to do is save and publish the document.
Here is the code I have for this button:
rivate Sub Command13_Click()
On Error GoTo Err_Command13_Click
Dim stDocName As String
Dim oApp As Object
Set oApp = CreateObject("Excel.Application")
oApp.Visible = True
'Only XL 97 supports UserControl Property
On Error Resume Next
oApp.UserControl = True
stDocName = "QryMain"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command13_Click:
Exit Sub
Err_Command13_Click:
MsgBox Err.Description
Resume Exit_Command13_Click
End Sub
Let me know if this is possible or if there is a more logical idea out there..Thank you in advance.