[AccessD] Setting field name in recordset

Susan Harkins harkinsss at bellsouth.net
Tue May 23 17:14:06 CDT 2006


I tried that already --  I get a type mismatch error. 

Susan H. 

Susan

Isn't it rstControls(language)?
> 
> 
>       ctl.Caption = rstControls.Fields(language)
>  
> I'm trying to grab a value from a recordset where the field changes. 
> The variable language is a string that holds the field name and I 
> don't know whether that's the problem or whether I'm using the wrong 
> syntax. Should I be referring to a field object instead of a string? 
> I'm sure I've done this before, but I just can't remember how.
>  
> I'm using ADO, not DAO. 
>  




More information about the AccessD mailing list