mcdhappy80
Registered User.
- Local time
- Today, 07:03
- Joined
- Jun 22, 2009
- Messages
- 347
I have a form with a button that opens another form:
The code for a button is:
When I click on a button the form dtshtFrmDete opens like on the above picture which I don't want. I tamper with its properties and make it right but I think after I compact and close and open database again, it opens again like on the picture.
Can someone help me with this. Here are the forms dtshtFrmDeteproperty settings. Maybe I've done something wrong here?
I just wanna form to open in datasheet view (and its datasheet by default), read only, not movable, and not being able to resize, with horizontal scroll bar only.
Thank You.
The code for a button is:
Code:
Private Sub btnSpisakDece_Click()
On Error GoTo Obrada_Greske
DoCmd.OpenForm "dtshtFrmDete", acFormDS, , , acFormReadOnly, acDialog
Izadji_Ovde:
Exit Sub
Obrada_Greske:
MsgBox Err.Number & " - " & Err.Description, vbInformation, "Greska je!"
Resume Izadji_Ovde
End Sub
When I click on a button the form dtshtFrmDete opens like on the above picture which I don't want. I tamper with its properties and make it right but I think after I compact and close and open database again, it opens again like on the picture.
Can someone help me with this. Here are the forms dtshtFrmDeteproperty settings. Maybe I've done something wrong here?
I just wanna form to open in datasheet view (and its datasheet by default), read only, not movable, and not being able to resize, with horizontal scroll bar only.
Thank You.