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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a form from 2 locations

Status
Not open for further replies.

pomster

Technical User
Jan 15, 2003
88
AU
I am trying to open a form from 2 other forms a different times but am getting "type mismatch error" with this:-
Code:
Public Function GetMemNo() As Long

If IsLoaded(Forms!f_membership) = True Then

        GetMemNo = Forms!f_membership.lngMembershipNo

Else
        GetMemNo = Forms!f_selectfish.[List0]
End If

End Function

Can somebody please help.

regards,


David

CRXIR2 with CRXIR2 server and SQL 2005
 
How are ya pomster . . .

Try:
Code:
[blue]If IsLoaded("f_membership") Then[/blue]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Ace Aceman... yoo da best!!

regards,


David

CRXIR2 with CRXIR2 server and SQL 2005
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top