I currently have a datasheet form created, but with how the code is written, it doesn't allow it to show. Only modification I made to the original code for Forms is as follows: loX = apiShowWindow(hWndAccessApp, SW_HIDE). I am pretty sure it has something to do with the view: datasheet (in the form properties), not form. I have created a second module to accept the form and modifed: screen.activedatasheet. The issue is now, that the Access Database Window is minimized in the taskbar, which I do not want it to show. How do I remove MS Access Icon from the taskbar? Here is the code from the new module for datasheets:
Function fSetAccessWindow(nCmdShow As Long)
Dim loX As Long
Dim loDatasheet As Form
On Error Resume Next
Set loDatasheet = Screen.ActiveDatasheet
If err <> 0 Then
loX = apiShowWindow(hWndAccessApp, nCmdShow)
err.Clear
End If
If nCmdShow = SW_HIDE And loDatasheet.Modal = True Then
MsgBox "Cannot minimize Access with " _
& (loDatasheet.Caption + " ") _
& "datasheet on screen"
ElseIf nCmdShow = SW_HIDE And loDatasheet.PopUp <> True Then
MsgBox "Cannot hide Access with " _
& (loDatasheet.Caption + " ") _
& "datasheet on screen"
Else
loX = apiShowWindow(hWndAccessApp, nCmdShow)
End If
fSetAccessWindow = (loX <> 0)
End Function
Thank you,
Scott