home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,066 of 10,840   
   Eddy Scheire to All   
   Multiple Field Index   
   08 Dec 04 17:20:57   
   
   From: eddy.scheire@skynet.be   
      
   Hey all,   
      
   I'm doing some modifications on an old VB 5.0 application.   
      
   The current code to access an MSAccess DB is :   
      
   rsName.Index = Field1   
   cSeek = Something   
   cSeek = Trim(cSeek)   
   rsName.Seek "=", cSeek   
      
   This table hasn't got no Primary Key. Now I want to do a Seek on two fields   
   in this table, but I can't get the code working. I tried something like :   
      
   rsName.Index = Field1, Field2   
   cSeek = Something   
   cSeek = Trim(cSeek)   
   cSeek2 = SomethingElse   
   cSeek2 = Trim(cSeek2)   
   rsName.Seek "=", cSeek, cSeek2   
      
   But that doesn't seem to be the right syntax. Any help is appreciated.   
      
   Eddy   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca