V
Vayse
When my form loads, I want to fill the TableAdapter
Select Case iAssetView
Case conVIEW_ASSET
' Load 1 Asset
Me.AssetsTableAdapter.FillByAsset(Me.AssetsDataSet.Assets,
stAssetCode)
Case conVIEW_SUB
' All assets in the sub category
Me.AssetsTableAdapter.FillBySub(Me.AssetsDataSet.Assets,
lSubCatgID)
Case conNEW_ASSET
' What should I do here?
Case Else
' Otherwise load all assets
Me.AssetsTableAdapter.Fill(Me.AssetsDataSet.Assets)
End Select
What should I do in the case of a new Asset?
Regards
Vayse
Select Case iAssetView
Case conVIEW_ASSET
' Load 1 Asset
Me.AssetsTableAdapter.FillByAsset(Me.AssetsDataSet.Assets,
stAssetCode)
Case conVIEW_SUB
' All assets in the sub category
Me.AssetsTableAdapter.FillBySub(Me.AssetsDataSet.Assets,
lSubCatgID)
Case conNEW_ASSET
' What should I do here?
Case Else
' Otherwise load all assets
Me.AssetsTableAdapter.Fill(Me.AssetsDataSet.Assets)
End Select
What should I do in the case of a new Asset?
Regards
Vayse