Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2003-10-23
4
179 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

766 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