Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

thread702-798009

Status
Not open for further replies.

kamiri

Programmer
May 9, 2014
1
GB
Hi,
Thanks for the code posted in the thread noted above.
However, I have a form with a subform on which has field named company with the following code on the [On Click] Event:

Private Sub Company_Click()
Dim strWhere As String
Dim DocName As String

DocName = "DRRSub2"
strWhere = "[Company]='" & Me.Company& "'"
DoCmd.OpenForm DocName, acNormal, , strWhere
End Sub

When I click this field it opens the required form but it also maximizes the main access window.

What could the problem be?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top