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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid

Status
Not open for further replies.

WornOut

IS-IT--Management
Jan 10, 2002
5
ZA
I'm converting from Access 2000 to SQL Svr 2000. My VB code uses a datagrid. However, although I set allowaddnew, allowdelete, allowupdate all to true, I'm not able to perform those functions on the displayed table. Why ?

Thanks
 
can you paste a snippet of your code here where you access the SQL server and display the data on the datagrid? this will help in debugging your problem
 
Private Sub Form_Load()

Set Db = Nothing
ConnectionString = "driver={SQL Server};" & _
"server=File;" & _
"uid=;pwd=;" & _
"database=Cash Management;"
MsgBox "Connection string setup new ver"
With Db
.ConnectionString = ConnectionString
.ConnectionTimeout = 20
.Open
End With

SQLLineItem.Open "Select * from lineitem", Db, adOpenKeyset, adLockOptimistic
Set DataGrid1.DataSource = SQLLineItem
DataGrid1.AllowAddNew = True
DataGrid1.AllowArrows = True
DataGrid1.AllowDelete = True
DataGrid1.AllowUpdate = True
DataGrid1.WrapCellPointer = True
DataGrid1.TabAction = dbgGridNavigation

End Sub
 
well, i think if you post this code on the VB forum you can get the clear answer, why dont you post it there? ô¿ô Kishore
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top