|
|
|
Click here to copy the following block |
Dim appAccess As New Access.Application
Public Sub MaximizeAccess() Dim hWnd As Long
hWnd = FindWindow("OMain", "Microsoft Access") If hWnd <> 0 Then ShowWindow hWnd, SW_NORMAL ShowWindow hWnd, SW_MAXIMIZE End If End Sub
Private Sub Command1_Click() appAccess.DoCmd.OpenForm "Categories", acNormal, , , , acDialog End Sub
Private Sub Command2_Click() appAccess.DoCmd.OpenReport "Catalog", acViewNormal End Sub
Private Sub Command3_Click() MaximizeAccess End Sub
Private Sub Form_Load() appAccess.OpenCurrentDatabase "C:\Program Files\Microsoft Visual Studio\VB98\nwind.mdb", True End Sub
Private Sub Form_Unload(Cancel As Integer) On Error Resume Next appAccess.CloseCurrentDatabase appAccess.DoCmd.Quit acQuitSaveNone End Sub |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|