Recent content by jadown

  1. J

    Export Table/query to specific location

    Never mind I see my mistake now. strPath & "\
  2. J

    Export Table/query to specific location

    I am trying to export a query or table to a location that the user selects. So each time the export button is clicked the folder will change. But I want to be able to select the folder. The code I have below is saving but not to the folder I want it to. Private Sub CommandBtn_Click()...
  3. J

    Linking External Tables to Current Database

    Hi All, I was wondering if it was possible to link random external tables to the Active Database through VBA. I would like to run the code that would open up a dialog box that would let the user select the database as well as the tables within that database that the user can select to link...
  4. J

    Using Access of Count Worksheets Loop

    Thanks for you help.
  5. J

    Using Access of Count Worksheets Loop

    Here is the complete code that I have. The block above is what I just added. Without the block of code above it works fine. But with the code above I get the error message stated above.
  6. J

    Help!! Open Excel Wkbk, Edit, SaveAs differnt name

    Thanks everyone for your help. It works now.
  7. J

    Using Access of Count Worksheets Loop

    Hello, I'm stuck once again. I would like Access to open an Excel file count the worksheets and then give each tab the name of the column heading in cell A1 of each worksheet. I had no problem with the code in Excel but when I tried to add it to Access I am getting an error on the WS_Count =...
  8. J

    Help!! Open Excel Wkbk, Edit, SaveAs differnt name

    Okay I tried to add a string for the select path but now I'm getting a run-time error '1004. Microsoft Excel cannot access the file C:\6D233000. The file name or path does not exist, The file is being used by another program...etx. Dim intChoice As Integer Dim strPath As String Dim fd As...
  9. J

    Help!! Open Excel Wkbk, Edit, SaveAs differnt name

    Correct, I will like to save it as the same path as the initial file. Is that possible?
  10. J

    Help!! Open Excel Wkbk, Edit, SaveAs differnt name

    Hello, I am trying to open an Excel Workbook from a FileDialog where the user can select the file, make changes (in this case formatting), then SaveAs a different name in the same path as the original file from a command button on an Access form. Everything works except saving the file as a...
  11. J

    Preserving characters from Excel Import to Access

    I know this is a crazy request but I was wondering if this was possible or not. The excel worksheet that I am importing into my database has some formula's, for an example =2+2. I am importing this worksheets, then checking fields against the main table, then exporting back to Excel. But I...
  12. J

    Rename Table Name to First Column Heading

    I'll see if I can explain it better. Ok the user will import worksheets that will create new tables every time. The thing is that each import will be different and instead of having the table name to be the same as the tab I want the table name to be the same as the first column heading. Is...
  13. J

    Rename Table Name to First Column Heading

    I am importing different excel sheets into Access dB using a file dialog. The importing works fine however, I would like to rename the tables once they are imported to the name of the first column heading. Where exactly would I ad the name change at in this code? #' Open the EXCEL file and...
  14. J

    Add column query

    Well let me ask this. Can I use the OR in the IIf(InStr(qA.twoField, "time" OR "day" OR "week") <> 0, "Culprit", "Clean" (this doesn't work) If there is a way to use it like this it may cut down on the number of queries I have to write. If I do have to write multiple queries, my final query...
  15. J

    Add column query

    Paul, thanks again. This works but I have so many different IIf(InStr(qA.twoField, "time") <> 0, "Culprit", statements that I get a syntax error. So I guess I wll have to write two different queries with all the IIf(InStr statements and then write another query to combine the newColumn1 is...
Top Bottom