I have some Properties (around 30; most are typical assignment format). Some values are assigned by procedures/ routines inside the Property/ or called. I'm probably going to get told off but these are quite intrinsic values to the class object. I would prefer to call a function to keep the Properties section clear as it's getting quite big & a little obfuscated but I can't figure out what's up.
I intermittently keep generating the error below; despite trying to follow guidance:
	
		
		
		
	
	
		 
	
 I intermittently keep generating the error below; despite trying to follow guidance:
- Returning correct data-types
- Query returns a single value
- Having the NewValue argument in the Let procedure... ensuring there is one more parameter than in the Get procedure
- _________________________________________________________________________________________________________________________________
- Additionally tried separating simplifying & just calling a function to return result
- Have similar Property - works fine
- Aware that I don't need to open rs type as Snapshot as a union query is read-only; looking for the slight performance gain (pedantic here I think)
		Code:
	
	
	Public Property Let PropName(NewValue As Long)
  Dim rs As DAO.Recordset
  Set rs = CurrentDb.OpenRecordset("UnionQueryName", dbOpenSnapshot, dbSeeChanges)
  NewValue = rs!FieldName
  mPropName = NewValue
  'mPropName = rs!FieldName  -  FAILS ALSO
  rs.Close
End Property
Public Property Get PropName()
  PropName= mPropName
End Property 
	 
 
		 
 
		
 
 
		 
 
		