|
-
August 30th, 2001, 09:55 AM
#1
Data Grid
Set db = DAO.Workspaces(0).OpenDatabase(App.Path & "\Database1.mdb")
Set rd = db.OpenRecordset("Worker", dbOpenDynaset)
till here it is working fine it is getting connected to Access 2000 database
now i have DataGrid on my form when i try this code
datagrid1.datasource = db
it gives me and error method or data member not found
what is the problem
plzz help
-
August 30th, 2001, 10:15 AM
#2
Re: Data Grid
set datagrid1.datasource = rd
<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
</center>
-
August 30th, 2001, 10:18 AM
#3
Re: Data Grid
this is giving me an error
type mismatch
-
August 30th, 2001, 10:20 AM
#4
Re: Data Grid
yes.. i thin u must use ADO insted of DAO... 
I think dbgrid.datasource wants a ADODB.recordset...
hi,brt
<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
</center>
-
August 30th, 2001, 10:26 AM
#5
Re: Data Grid
i am not getting Adodb
i even added Ado refrence it is showing me missing i dont know what is this problem that is y i use dao
if i use adodc1 then i wont b able to databse with the password
-
August 30th, 2001, 10:31 AM
#6
Re: Data Grid
R U using a MS DBGrid Control or a MS Data Bound Grid Control?
<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
</center>
-
August 30th, 2001, 10:34 AM
#7
Re: Data Grid
ms datagrid control 6.0 (oledb)
-
August 30th, 2001, 10:36 AM
#8
Re: Data Grid
oledb means ADO...
so U try using a MS data bound control grid 5.0
<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
</center>
-
August 30th, 2001, 10:42 AM
#9
Re: Data Grid
i have databound grid 5.0(sp3)
will this work
-
August 30th, 2001, 10:44 AM
#10
Re: Data Grid
i have databound grid 5.0(sp3)
and that is giving me an error
class doesnot support automation or doesnot supported expeceted interface
-
August 30th, 2001, 10:59 AM
#11
Re: Data Grid
U must use a DAO data control.
then at design time set datasourse of dbgrid to your dao data control( using combo)..
<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
</center>
-
August 30th, 2001, 11:12 AM
#12
Re: Data Grid
Try assigning Recordset to the Datagrid data source property
I think you should say datagrid1.datasource = rd
-
August 30th, 2001, 11:20 AM
#13
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|