Hi,
I thought i read somewhere that i was able to do that. regardless it does not seem to like it anymore:sign0161:
this is how the tasble is initialised
command.CommandText="SELECT * FROM [Sales] WHERE CustCode='" _
& CustCode & "' AND Uploaded=0"
Command.ExecuteTable("StblOrders",0)
StblOrders.ColWidth("OrderNo") = 0
StblOrders.ColWidth("VanNo") = 0
StblOrders.ColWidth("CustCode") = 0
StblOrders.ColWidth("ProductCode") = 20
StblOrders.ColWidth("Qty") = 30
StblOrders.ColWidth("OrderDate") = 0
StblOrders.ColWidth("OrderTime") = 0
StblOrders.ColWidth("Amount") = 30
StblOrders.ColWidth("GST") = 30
StblOrders.ColWidth("Uploaded") = 0
Panel1.Visible=False
StxtProdCode.Focus
As i understand it the table is loaded with all fields from the database and then i hide unrequired columns. Is this not the correct way?
