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 dencom 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: *

  1. JimLes

    Access VBA Mail Merge Split to PDF and Word

    ...Name:=currentDbName, LinkToSource:=True, Connection:="DSN=MS Access Database;" & "DBQ=" & CurrentDb.Name & ";", _ sqlstatement:="SELECT * FROM [tblSeveranceLetters]" ObjWord.MailMerge.DataSource.ActiveRecord = wdLastRecord LastRecord =...
  2. JimLes

    Access VBA Mail Merge Split to PDF and Word

    ...Name:=currentDbName, LinkToSource:=True, Connection:="DSN=MS Access Database;" & "DBQ=" & CurrentDb.Name & ";", _ sqlstatement:="SELECT * FROM [tblSeveranceLetters]" ObjWord.MailMerge.DataSource.ActiveRecord = wdLastRecord LastRecord =...
  3. JimLes

    Access VBA Mail Merge Split to PDF and Word

    I don't believe I can modify the opendatasource to equal one name because I could have up to 100 employees in that table to process to letters. The names change with every run.
  4. JimLes

    Access VBA Mail Merge Split to PDF and Word

    yes, I am trying to output everything in the tblSeveranceLetters to a mailmerge that saves each by a Word and PDF with the employee's name as the filename. It works perfect only, it bundles them.
  5. JimLes

    Access VBA Mail Merge Split to PDF and Word

    ...Name:=currentDbName, LinkToSource:=True, Connection:="DSN=MS Access Database;" & "DBQ=" & CurrentDb.Name & ";", _ sqlstatement:="SELECT * FROM [tblSeveranceLetters]" ObjWord.MailMerge.DataSource.ActiveRecord = wdLastRecord LastRecord =...
  6. JimLes

    Access VBA Mail Merge Split to PDF and Word

    When it stops for the message below, it shows 2 records to be processed, however, it seems to be looping through through both records at once and processing them in one file. It does create 2 Word and 2 PDF, but both employees are in each file. If MsgBox(LastRecord & " employee severance...
  7. JimLes

    Access VBA Mail Merge Split to PDF and Word

    ...Name:=currentDbName, LinkToSource:=True, Connection:="DSN=MS Access Database;" & "DBQ=" & CurrentDb.Name & ";", _ sqlstatement:="SELECT * FROM [tblSeveranceLetters]" ObjWord.MailMerge.DataSource.ActiveRecord = wdLastRecord LastRecord =...
  8. JimLes

    Mail Merge from Table Saving each record to Word and PDF

    ..._ Name:=currentDbName, LinkToSource:=True, Connection:="DSN=MS Access Database;" & "DBQ=" & CurrentDb.Name & ";", _ SQLStatement:="SELECT * FROM [tblSeveranceLetters]" Dim rec, LastRecord As Integer Dim docNameField, strDocName, savePath As String...
  9. JimLes

    Mail Merge from Table Saving each record to Word and PDF

    ...a selection(s) from the list", , "Selection Required !" Exit Sub End If 'select all employees from query strSQL = "SELECT * FROM qrySeveranceLetters" 'Build the IN string by looping through the listbox For i = 0 To LetList.ListCount - 1...
  10. JimLes

    PowerShell Delete Large SharePoint List item 14 days old

    The script below works for a small SharePoint list but I cannot seem to get it to work with a large list over 900,000 rows. Any suggestions would be greatly appreciated. I am very new to PowerShell but I think I am missing the loop. $SiteName = "https://folio.com/mysite" $list = "Audit Only...
  11. JimLes

    Import file not working 32 to 64 upgrade

    This is the code to call on the 64 bit procedure: Public Sub ImportSeveranceData() Dim strCurrProjPath As String Dim objExcel As Object 'Excel.Application Dim objWorkbook As Object 'Excel.Workbook Dim objWorksheet As Object 'Worksheet Dim strXlFileName As String 'Excel Workbook name Dim...
  12. JimLes

    Import file not working 32 to 64 upgrade

    ...Compare Database Option Explicit 'Dim strFilter As String 'Dim strInputFileName As String ' 'strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.XLS)", "*.XLS") 'strInputFileName = ahtCommonFileOpenSave( _ ' Filter:=strFilter, OpenFile:=True, _ ' DialogTitle:="Please select an input...
  13. JimLes

    Import file not working 32 to 64 upgrade

    ...Dim strFilter As String Dim lngFlags As Long Dim varFileName As Variant On Error GoTo Err_ImportSeveranceData strFilter = "All Files (*.*)" & vbNullChar & "*.*" lngFlags = tscFNPathMustExist Or tscFNFileMustExist Or tscFNHideReadOnly varFileName = tsGetFileFromUser( _...
  14. JimLes

    Import file not working 32 to 64 upgrade

    Hello, since my pc was upgraded, this code will not run. It goes directly to the "File selection was canceled." It worked fine before the upgrade but I had to put PtrSafe declarations in the following to get it it even open. Any help would be greatly appreciated on ideas to fix???
  15. JimLes

    Update Table based on 2 Criteria from List Box

    Okay, maybe I entered it wrong but your code is working now. It could be my declaration of "VarItem" that did it but not sure. Anyway, I am very happy that it works!! strSQL = "UPDATE tblSeveranceData " _ & " SET [Date Sent Payout] = Date() " _ & " WHERE [AutoNumber] = " &...
  16. JimLes

    Update Table based on 2 Criteria from List Box

    Here was what I was getting with just the AutoNumber as the criteria. The AutoNumber was reading blank. I totally agree with you that it should be pulling because it is a primary key: UPDATE tblSeveranceData SET [Date Sent Payout]=Date() WHERE [EID]='2248808' And [AutoNumber] = Here is...
  17. JimLes

    Update Table based on 2 Criteria from List Box

    Okay, this seems to be working: I simply used both the Employee ID and Autonumber for the criteria to find the record in the table. strSQL = "UPDATE tblSeveranceData SET [Date Sent Payout]=Date() " & _ "WHERE [EID]='" & Me.EEList.Column(0, varItem) & "' And [Autonumber] =" &...
  18. JimLes

    Update Table based on 2 Criteria from List Box

    Umm, this updated all records for the employees. Wonder why it is not recognizing the autonumber? When I pull the following, column 19 is equal to the autonumber in tblSeveranceData. 'Grab items selected in Listbox iCount = 0 If Me!EEList.ItemsSelected.Count <> 0 Then...
  19. JimLes

    Update Table based on 2 Criteria from List Box

    Correct, [Term Date]= Date Since the employee may have duplicate records, I am thinking I could use the AutoNumber as a unique identifier to update the tblEmployeeData![Date Pay Out] rather than use two criteria to find the unique record. I tried this: MyDB.Execute ("UPDATE tblSeveranceData...

Part and Inventory Search

Back
Top