I think that in this case it is better to address the cells through the active sheet
'Setting active list "Component list"
Set objSheet = objWorkBook.Worksheets("Component list")
objSheet.Range("M47").Value = Me.Branding_type
The code below works fine
Try:
If Me.NewRecord = True Then ' On new record
DoCmd.OpenForm "frmHivePhotos", , , , acFormAdd
Else ' on an existing record
DoCmd.OpenForm "frmHivePhotos", , , "HiveID = " & Me.HiveID, , , Me.HiveID
End If
I don't see your solution.
By the way, query:
SELECT [Vendor#], Code, Vendors_Type.Description
FROM Vendors
LEFT JOIN Vendors_Type ON Vendors.Code = Vendors_Type.Code;
Is not editable ...
Please change your query "Vendors_With_TypeQ" to the following:
SELECT [Vendor#], Code,
DLookUp("Description","Vendors_Type","Code = '" & [Code] & "'") AS Description
FROM Vendors;
Try:
Private Sub Form_Load()
Me.TimerInterval = 1000
Me.DisplayTimer = 50
End Sub
Private Sub Form_Timer()
Me.DisplayTimer = Me.DisplayTimer - 1
If Me.DisplayTimer < 1 Then
Me.TimerInterval = 0
Call LogProcess
End If
End Sub
With MS Word you can use .Activate method.
Private Sub OpenAndActivateWord()
'MS Word - Opening a document and activating application window
'---------------------------------------------------------------------------------------------------
Dim sDocPath As String
Dim objWordApp As Object
On...