Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object instance (probably quick one)

Status
Not open for further replies.

Erics44

Programmer
Oct 7, 2004
133
GB
hi I am getting an error with the following code, it is saying I havent set the last line as an instance of an object. Can anyone tell me why please

Dim dr As DataRow
Dim dt As DataTable
dt = dgActivities.DataSource
For Each dr In dt.Rows

Thanks in advance
 
you probably need something like this

dt = ctype(dgActivities.DataSource,datatable)


Christiaan Baes
Belgium

"My new site" - Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top