By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,164 Members | 1,019 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,164 IT Pros & Developers. It's quick & easy.

MS datagrid control in MS access application

P: 6

can anyone help me to use ms data grid control in ms access application.

i put an ms datagrid control in my ms access form.but i am enable to enter any values to it
i tried by seetting the dfatasource property of msdatagrid. but when i am trying to connect to a table in teh same database it is showing error like database is locked .it is very urgent can anyone of u help me !!! i am givin gteh code below

constring = "Provider=Microsoft.Jet.OLEDB.3.51;" & _
"Data Source=C:\Documents and Settings\Roshla_Rammohan\Desktop\FOLDER\ACCESS\TSA PDB.mdb;Persist Security info = false "

con.Open constring
rs.Open "select * from PartDetails", con, adOpenDynamic, adLockReadOnly
rs.CursorLocation = adUseClient
If ParentFormIsOpen() Then Forms![PartsMaster]!ToggleLink = True
Set DataGrid2.DataSource = rs
Oct 13 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.