473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

retrieve data

140 100+
hi,

please tell me how to retrieve data from backend. i am using data control. but when i click recordsource property its giving error as" unrecognised database format"e:\vb_image\storyboard\stroyboard.mdb"


Dim CON As New ADODB.Connection
Dim RS As ADODB.Recordset


Private Sub Data1_Validate(Action As Integer, Save As Integer)

CON.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data " _
& "Source=E:\Vb_image\Storyboard\storyboard.mdb; "

Set RS = CON.Execute("Select * from story")


RS.Fields = "projectid='" & Trim(projectid.Text) & "'"
RS.Fields = "project_txt'" & Trim(project_Txt.Text) & "'"
RS.Fields = "date_txt= '" & Trim(date_txt.Text) & "'"

Set Data1.DatabaseName = "storyboard.mdb"

End Sub

pls help me out
Jan 24 '07 #1
4 1610
willakawill
1,646 1GB
hi,

please tell me how to retrieve data from backend. i am using data control. but when i click recordsource property its giving error as" unrecognised database format"e:\vb_image\storyboard\stroyboard.mdb"


Dim CON As New ADODB.Connection
Dim RS As ADODB.Recordset


Private Sub Data1_Validate(Action As Integer, Save As Integer)

CON.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data " _
& "Source=E:\Vb_image\Storyboard\storyboard.mdb; "

Set RS = CON.Execute("Select * from story")


RS.Fields = "projectid='" & Trim(projectid.Text) & "'"
RS.Fields = "project_txt'" & Trim(project_Txt.Text) & "'"
RS.Fields = "date_txt= '" & Trim(date_txt.Text) & "'"

Set Data1.DatabaseName = "storyboard.mdb"

End Sub

pls help me out
Hi. I am trying to work out exactly what it is that you are seeking to do in this validate sub. Perhaps you could describe what you are trying to achieve here.

If you have copied and pasted the error you will notice that there is a typo in the spelling of storyboard which may cause this error.
Jan 24 '07 #2
indhu
140 100+
Hi. I am trying to work out exactly what it is that you are seeking to do in this validate sub. Perhaps you could describe what you are trying to achieve here.

If you have copied and pasted the error you will notice that there is a typo in the spelling of storyboard which may cause this error.

actually, i want to retrieve datas from backend. i don't know how to retrieve so i used data control object to retrieve the data.

help me
Jan 25 '07 #3
willakawill
1,646 1GB
actually, i want to retrieve datas from backend. i don't know how to retrieve so i used data control object to retrieve the data.

help me
You did not respond to my statement:
If you have copied and pasted the error you will notice that there is a typo in the spelling of storyboard which may cause this error
Jan 25 '07 #4
indhu
140 100+
You did not respond to my statement:
If you have copied and pasted the error you will notice that there is a typo in the spelling of storyboard which may cause this error
Hi

No i didn't copy that. i type that error to u. when i click recordsource also its generating same error.

i didn't install MSDN, becas i didn't have that cd. so i couldn't perform VB wizard form also. Is there anyway of getting it thru online, it would be helpful for my project:) i can add components also.

help meeee
Jan 25 '07 #5

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

Similar topics

0
by: Chung Leong | last post by:
My contribution to the comp.lang.php FAQ: ------------------------------------------------------------- Q: How do I retrieve a page from a web site? A: Pass a URL to file() or...
5
by: David Rasmussen | last post by:
Some sites seem to be session driven in the sense that if I visit the homepage and do a few clicks I can navigate anywhere I want, but if I paste the current location into a new browser window...
2
by: forums_mp | last post by:
I've got an STL class (see below) with two functions to store and retrieve data - msg structs. The "Store" function when called will copy the received message (depending on which message) into...
4
by: Claudia Fong | last post by:
Hi, I have a form where I need to display the data of a department that stores in a access db. When I first load the form it will call a function name loaddata which will get the first...
6
by: lovecreatesbeauty | last post by:
/* It seems that when an int with width of four bytes is assigned to a one byte width char, the first three bytes from left to right are discarded and the rightest byte is assigned to that char....
13
by: kev | last post by:
Hi all, I have created a database for equipments. I have a form to register the equipment meaning filling in all the particulars (ID, serial, type, location etc). I have two buttons at the end...
9
by: trint | last post by:
How can I retrieve all of the data from a datagridview? Any help is appreciated. Thanks, Trint
1
by: Mel | last post by:
Anyone know how I would retrieve the MaxLength property of a column in my Access Database table? I know how to retrieve table data, for example the "Quote #" field in my example code below, but I...
9
by: Mel | last post by:
I have 10 columns total. 3 of them are invisible. The rest are read- only BoundFields, 3 of which are editable fields using TemplateFields. Upon editing, I want to validate what the user enters...
0
by: tigger | last post by:
Hi there, I'm having problems retrieving data from Access database using Visual basic 2005. My database is called Actual_Database and it has a few tables. One of them is called...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.