Assign the appropriate form as the subform’s source object.Me![subNewJobs].SourceObject = “fsubNewJobs”End SelectErrorHandlerExit:
Exit SubErrorHandler:
MsgBox “Error No: “ & Err.Number _
& “; Description: “ & Err.Description
Resume ErrorHandlerExitEnd SubThe “Save New Jobs to Table” button’s event procedure sets up a Select Casestatement to run
one of three append queries to append the new Jobs data to the tblJobs table:Private Sub cmdSaveJobs_Click()On Error GoTo ErrorHandlerDoCmd.SetWarnings FalseintFileType = Nz(Me![fraFileType].Value, 1)Select Case intFileTypeCase 1dBASEDoCmd.OpenQuery “qappNewJobsDB”Case 2ParadoxDoCmd.OpenQuery “qappNewJobsPdox”Case 3Lotus 1-2-3DoCmd.OpenQuery “qappNewJobsLotus”End SelectPart II Writing VBA Code to Exchange Data between Office Components
