I have a problem using enums in a DAO query
seems that dec.m_MediaType = 1 when i am looking to match a STRING in a table.

Is there a way around this? or am i stuck putting index numbers in my access table. ?




VB Code:
  1. rstVelocity.Index = "PrimaryKey"
  2.     rstVelocity.Seek "=", dec.m_MediaType ' NEED STRING NOTNUMBER
  3.         mDucting.Description.m_roomVelocity = rstVelocity(1) 'just in case we need it
  4.         mDucting.Description.m_cfm = rstVelocity(1) * (dec.m_roomWidth * dec.m_roomHeight)
  5. rstVelocity.Close
  6.  
  7.  
  8.  
  9.  
  10.  
  11. ' HERES MU ENUM
  12.  
  13. Public Enum MediaType
  14.     AlumOxide
  15.     Sand
  16.     StarBlast
  17.     SteelGrit
  18. End Enum



Thanks Seahag