Click to See Complete Forum and Search --> : User defined data types


kjoter
October 15th, 2001, 07:47 AM
Hello guru's

I am trying to send a recordset from VB to a com platform, but have strange problems with user defined data types (i'm a beginner in VB..)

When i try to compile the app. I get the errormessage: "user defined data type not defined" and the compiler marks all of the code i've pasted in here:


Public Function DoPafSearch( _
ByVal FullPostCode As String, _
ByVal BuildingNumOrName As String, _
Optional ByVal OrganisationName As String = "", _
Optional ByVal ThoroughfareName As String = "", _
Optional ByVal PostalTownName As String = "", _
Optional ByVal CountyName As String = "", _
Optional ByVal IndividualFamilyName As String = "", _
Optional ByVal MinSearchQuality As Long = 80, _
Optional ByVal UsePAFTags As Boolean = True, _
Optional ByVal MaxDisplay As Long = 50, _
Optional ByVal OccupantNamesReturnInd As Boolean = False _
) As ADOR.Recordset

Do anyone know how to define this correct?

K.

Iouri
October 15th, 2001, 08:44 AM
Make sure that you referenced ADO library.

dim rs as ADODB.Recordset

Iouri Boutchkine
iouri@hotsheet.com

phunkydude
October 15th, 2001, 08:46 AM
I think you should check that both the Client and the Component are referencing the ADOR library.
HTH