Ashfaque
Search Beautiful Girls from your town for night
- Local time
- Today, 15:39
- Joined
- Sep 6, 2004
- Messages
- 894
Dim objXL As Excel.Application
Dim objWkb As Excel.Workbook
Dim objSht As Excel.Worksheet
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("SELECT T_JobOffer.CNO, T_JobOffer.Cname, T_JobOffer.Cposition, " & _
"T_JobOffer.CExpDateOfJoining, T_JobOffer.Cposition, T_JobOffer.CDept, T_EOSB.LastWorkingDay, T_EOSB.LeavingReason " & _
"FROM T_JobOffer INNER JOIN T_EOSB ON T_JobOffer.cno = T_EOSB.Cno WHERE T_JobOffer.CNO =" & Forms!F_EOSB!CNo)
Set objXL = New Excel.Application
objXL.Visible = True
Set objWkb = objXL.Workbooks.Open("D:\Ashfaque\EOSB.xlsx")
Set objSht = objWkb.Worksheets("Sheet1")
Previously it was working well but now the above bold line producing error.
Where might have gone wrong?
Please help me over come this issue.
Thanks,
Dim objWkb As Excel.Workbook
Dim objSht As Excel.Worksheet
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("SELECT T_JobOffer.CNO, T_JobOffer.Cname, T_JobOffer.Cposition, " & _
"T_JobOffer.CExpDateOfJoining, T_JobOffer.Cposition, T_JobOffer.CDept, T_EOSB.LastWorkingDay, T_EOSB.LeavingReason " & _
"FROM T_JobOffer INNER JOIN T_EOSB ON T_JobOffer.cno = T_EOSB.Cno WHERE T_JobOffer.CNO =" & Forms!F_EOSB!CNo)
Set objXL = New Excel.Application
objXL.Visible = True
Set objWkb = objXL.Workbooks.Open("D:\Ashfaque\EOSB.xlsx")
Set objSht = objWkb.Worksheets("Sheet1")
Previously it was working well but now the above bold line producing error.
Where might have gone wrong?
Please help me over come this issue.
Thanks,