Solved

Learn how to write an app. in VP to display data from informix to a web page.

Posted on 2003-10-23
4
169 Views
Last Modified: 2010-05-03
I an experienced programmer in Visual FoxPro 5 and in the process of learning VB 6. I need to write an application to gather data from an Informix Database and display data on a web page. I need to do a small application for internet banking. Can anyone help me get an example or where can I get information how to do this. I bought the Keystone learning videos on VB and I am going though it very slowly. I have no experience in web page development at this time.

Thanks
0
Comment
Question by:mikeayuso
4 Comments
 
LVL 1

Accepted Solution

by:
GenericUserName earned 100 total points
ID: 9609762
1. I'm assuming you have the proper ODBC driver for Informix databases.
2. You'll need to look up database connection strings for VB, and substitute the driver specification with yours. Search under vb databases in MSDN. Look at how they connect to SQL services; you should be able to use similar strings. For example, you can do this:
----
Dim strConn As String
strConn = "driver={INFORMIX 3.80 32 BIT};server=DBSERVER;host=HOST;service=TURBO;protocol=OLSOCTCP;database=DATABASE"
Dim objConnection As New ADODB.Connection
objConnection.Open strConn, USERID, PASSWD, adConnectUnspecified
If objConnection.Errors.Count <> 0  Then
   MsgBox "Couldn't Connect to Database!"
End If
' --- OR ---
If objConnection.State <> 1 Then
   MsgBox "Is not connected!"
End If
----

I recommend the ADODB connection and recordset objects. You should be able to find tons of information. Basically, you get a recordset from executing queries on the connection. As far as populating a webpage, it is best to simply output an html document and open it from IE. However, I'd suggest getting your data and seeing how to do all the basics, and then you can play around with HTML export, which isn't too bad, but you need to be solid on your databasing first...

Good luck!
0
 
LVL 1

Expert Comment

by:fsaims
ID: 9613125
This link will might be helpful to you for learning database development using ADO
http://www.devguru.com/Technologies/ado/quickref/ado_index.html
0
 
LVL 27

Expert Comment

by:planocz
ID: 10183414
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from mikeayuso from 10/24/2003 comment
Award points to GenericUserName is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now