Re: Multiple-step - Field from 2 diff. Tbl are Non-Editable in VB
From: Sirish Saxena (SirishSaxena_at_discussions.microsoft.com)
Date: 08/31/04
- Next message: Paul Clement: "Re: Any chance to replace the Seek method by converting from DAO to ADO ?"
- Previous message: Tom Moreau: "Re: load data from Access to SQL"
- Next in thread: Wart: "Re: Multiple-step - Field from 2 diff. Tbl are Non-Editable in VB"
- Reply: Wart: "Re: Multiple-step - Field from 2 diff. Tbl are Non-Editable in VB"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 31 Aug 2004 07:29:08 -0700
The Problem is i have multiple records coming back and each record may have a
different condition so i cannot use this approach.
"Wart" wrote:
> My suggestion would be to use the case condition before creating the SQL
> statement.
> Select Case Cond
> Case 1
> SqlString = "Select tbl1.Table_1_name from ..."
> Case Else
> SqlString = "Select tbl2.Table_2_Name from ..."
> End Select
> RS.Open SQlString,...
> HTH,
> CF
> "Sirish Saxena" <Sirish Saxena@discussions.microsoft.com> wrote in message
> news:8090693B-64B3-48AA-841E-D53FD0498674@microsoft.com...
> > If I use a case statement in SELECT SQL to get the value of a field
> > conditionaly either from tbl1 or from tbl2. that field in non editable in
> VB
> > ADO.Recordset
> > For Example
> > SELECT
> > CASE Cond = 1 THEN tbl1.Table_1_Name
> > ELSE tbl2.Table_2_Name
> > END AS COND_NAME
> > FROM <join between 2 table>
> >
> > now when i try to change the value of the field in VB i get this dreaded
> > error:
> > SOURCE: Microsoft Cursor Engine
> > DESCRIPTION: Multiple-step operation generated errors. Check each status
> > value.
>
>
>
- Next message: Paul Clement: "Re: Any chance to replace the Seek method by converting from DAO to ADO ?"
- Previous message: Tom Moreau: "Re: load data from Access to SQL"
- Next in thread: Wart: "Re: Multiple-step - Field from 2 diff. Tbl are Non-Editable in VB"
- Reply: Wart: "Re: Multiple-step - Field from 2 diff. Tbl are Non-Editable in VB"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|