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!

Adding a DataColumn to Dataset

Status
Not open for further replies.

AndyFreeman

IS-IT--Management
Mar 22, 2004
70
GB
Ok i am calculating a date diff value i have the value but not too sure how to add the value as a column in the dataset


Code:
time_diff=no_of_hours & "hrs  " & mins &"mins"
		
	dcoldiff = New DataColumn ( "Time_diff", getType(String) ) 
	dcoldiff.expression =  & time_diff & 
	dtsOUPC.tables ( "info" ).Columns.Add ( dcoldiff )

This is what i have so far

Any help would be greatly appreciated
Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top