| | |
Please help---urgent!!
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Aug 2008
Posts: 15
Reputation:
Solved Threads: 0
Is it possible to open a hyperlink and display the data in a label or text box?
I have a table in Access where the data type of a record is a hyperlink. I would like to open that hyperlink and display the data in a label or text box.
It is for a school project and so quick responses would really be appreciated. I'm also sorry as this is my second thread on the matter, but no one replied to the last thread. Hopefully you can understand the urgency.
Thank you
Daniel.
I have a table in Access where the data type of a record is a hyperlink. I would like to open that hyperlink and display the data in a label or text box.
It is for a school project and so quick responses would really be appreciated. I'm also sorry as this is my second thread on the matter, but no one replied to the last thread. Hopefully you can understand the urgency.
Thank you
Daniel.
Hi Daniel,
When you mean data do you mean the webpage itself? If you want a webpage to be displayed within VB follow the instructions of this link:
http://www.trap17.com/index.php/how-...er_t31604.html
When you mean data do you mean the webpage itself? If you want a webpage to be displayed within VB follow the instructions of this link:
http://www.trap17.com/index.php/how-...er_t31604.html
Last edited by Don Gino; Aug 24th, 2008 at 8:04 pm.
s. u can use the file system object and textstream to open a textfile, read the data and display it in a lable or a textbox.
Add the Microsoft Scripting Runtime in the References. Create objects of the following.
FileSystemObject and TextStream
Try out these, if u still cant make the code then 'll be there to help u out.
Regards
Shaik Akthar
Add the Microsoft Scripting Runtime in the References. Create objects of the following.
FileSystemObject and TextStream
Try out these, if u still cant make the code then 'll be there to help u out.
Regards
Shaik Akthar
Open the recordset. Extract the field with hyperlink and connect it to the File System Object and TextStream
Regards
Shaik Akthar
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim rs as New ADODB.Recordset Dim FSO As New FileSystemObject Dim FL As TextStream rs.Open "SELECT hLinkField FROM MYTABLE WHERE ID = 1", con,adopenKeySet, adLockReadOnly 'If record found then If rs.BOF = False Then 'open the file in the field which contains 'the hyperlink to the textfile Set FL=FSO.OpenTextFile(rs!hLinkField, & _ ForReading, False) Text1.Text = "" While Not FL.AtEndOfStream Text1.Text = Text1.Text & FL.ReadLine Wend FL.Close End If Set FL = Nothing Set FSO = Nothing
Regards
Shaik Akthar
Last edited by aktharshaik; Aug 25th, 2008 at 1:24 am.
•
•
Join Date: Aug 2008
Posts: 15
Reputation:
Solved Threads: 0
•
•
•
•
Here I assume u know how to connect to your database. i have considered ADODB.Connection object "con" which is global and already attached to the database.
Regards
Shaik Akthar
Set db = OpenDatabase(App.Path & "\database.mdb")
Set rst = db.OpenRecordset("table")
![]() |
Similar Threads
- pls heeeeeeeeelp its urgent. (C)
- Urgent! (C++)
- URGENT: Need help on I/O code! (Java)
- Urgent help (Networking Hardware Configuration)
- Homepage keeps switching back to a porn site (Web Browsers)
- Importing SQL Script File - Urgent !! (Database Design)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: VB Oracle Connectivity
- Next Thread: Out of Memory in large vb6 app
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





