Hi Brian,
It should be the PK in the category table, but that's not the problem
though.
if that line return null is cause the column is not found in the table, use
the watch to see if it does exist, check que query that you use to generate
the table, somewhere somehow you are not getting that column from the access
DB.
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Brian Kiser" <brian.kiser@ky.gov> wrote in message
news:ebMxiP$QEHA.2572@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi, Ignacio. Yes, that's the line. The Category_ID field is definitely
> in the (Access) table.
>
> It's not a primary key, however. There aren't any rules saying
> Category_ID must be the pk, are there? I can't figure out why this line
> returns null...
>
>
>
> --------------------
> Hi Brian,
>[color=green]
> > dc2 = ds.Tables ["subcategories"].Columns ["Category_ID"];[/color]
>
> Is this the line with the "issue"
> if it's so it;s because the column "Category_ID" does not exist in the
> "subcategories" table. Check the definition of the table.
>
> Cheers,
>
> --
> Ignacio Machin,
> ignacio.machin AT dot.state.fl.us
> Florida Department Of Transportation
>
> *** Sent via Developersdex
http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]