Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: mastro78
  • Order by date
  1. mastro78

    Posted in wrong forum - Excel link dump into Access table

    As far as I can see everything is as it should be. Just seems to be having a problem with that line.
  2. mastro78

    Posted in wrong forum - Excel link dump into Access table

    Error 3251 Operation is not supported for this type of object - is the error i get now
  3. mastro78

    Posted in wrong forum - Excel link dump into Access table

    With the four sets of quotes at the end, says unexpected end of statement and highlights those. All the code is identical to what you gave me. What is strange is something changed from unsupported object to this.
  4. mastro78

    Posted in wrong forum - Excel link dump into Access table

    rsSheet.FindFirst "SheetPathName = """ &PathToExcelFiles + ExcelFileName """" Actually now I get a syntax error for some reason. I was just trying to mimic it.
  5. mastro78

    Posted in wrong forum - Excel link dump into Access table

    And when should I call the Import Function? From the way the function works in your code, looks like I wouldn't need all that I have in the OnOpen event and just call this module instead? Unfortunately, no matter how I go about it I get the unsupported object error 3251.
  6. mastro78

    Posted in wrong forum - Excel link dump into Access table

    Looking at your code, that findfirst line I'm having trouble with. The field in the table Spreadsheets that contains the filename is Spreadsheet and it only contains the filename no path with it. The path is stored in a different table. So when you say "Spreadsheet = """ &PathToExcelFiles +...
  7. mastro78

    Posted in wrong forum - Excel link dump into Access table

    ONOPEN EVENT AND BUTTON CLICK: Private Sub Active_Click() Call ImportFromExcel DoCmd.OpenForm "frmDetails" End Sub Private Sub Form_Open(Cancel As Integer) 'Set menu title Dim dbs As Database, cnt As Container Dim doc As Document, prp As Property, CapStr As String Set...
  8. mastro78

    Posted in wrong forum - Excel link dump into Access table

    Actually to avoid having to touch anything in the Spreadsheets table on import, I added the Spreadsheet field to my main data table plus added a function to Excel to capture the filename so when I append it stores it in the access data table. With the onopen of my main form is where I have it...
  9. mastro78

    Posted in wrong forum - Excel link dump into Access table

    I already have the reference piece set up, did that when I started the project. And I currently am storing the path in one database initially and in the Spreadsheets table I'm storing the file name only. I may have an error in the process/order of doing this.
  10. mastro78

    Capturing the Excel File name in a cell in the same workbook

    What I'd like to do is have the file name of the Excel worksheet/workbook I'm using to capture the name of itself in a cell in a hidden worksheet. Please advise, thank you!
  11. mastro78

    Posted in wrong forum - Excel link dump into Access table

    Comes back unsupported for some reason.
  12. mastro78

    Posted in wrong forum - Excel link dump into Access table

    Actually what does this stand for:: OpenSchema(adSchemaTables)
  13. mastro78

    Posted in wrong forum - Excel link dump into Access table

    Not exactly sure what this piece is doing: cnXcell.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & "c:\PayrollRec.xls" & ";Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"";" Set rsXcell = cnXcell.OpenSchema(adSchemaTables) Do While Not rsXcell.EOF WorksheetName =...
  14. mastro78

    Code to call Excel spreadsheet in a function

    I'm trying to fit this into my current OnOpen event where I'm gathering the Excel file info (name,date modified). Thanks Skip.
  15. mastro78

    Code to call Excel spreadsheet in a function

    I know how to call/set CurrentDb and open the table I'm working with. Just curious as to how to do the same thing with an Excel worksheet and the associated cell data. Thanks.
  16. mastro78

    Grabbing a value from a cell in Excel and storing it in Access

    I currently have a table that stores the Excel file name(field:Spreadsheet) as well as the DateLastModified(field:DateModified). Now what I'd like to do is pull in the value from a single cell(cell:CntrlNm) in one of the worksheets(worksheet:Details$) into that same table(table:Spreadsheets)...
  17. mastro78

    Posted in wrong forum - Excel link dump into Access table

    To clarify the final piece: Spreadsheets is an Access table that stores the file names and date modified of any given Excel spreadsheet in my current directory. Fields are Spreadsheet and DateModified. What I would like is that for the code to run the append query for any given...
  18. mastro78

    Posted in wrong forum - Excel link dump into Access table

    All I had to do was put that Delete Object line before the End If and it worked perfectly. Thank you for your help!

Part and Inventory Search

Back
Top