Regarding VB6
Hi all,
I would like to learn Vb6 database Ms Access 2010. To start with do i need to download anything. where shall i start with?can we use visual studio 2010 to work with vb6?
I did not understand where to post this query as there is nothing Vb6 forum or vb6 related questions. sorry for that.
Any help greatly appreciated.
Thanks in advance
Just for the record, I know Microsoft pulled out the support for VB 6.0. A waste of time since you can't make money out of it ( at least that's what they thought )
First off, you'll need a copy of VB 6.0. You would want to download the VB 6.0 Service Pack 6 and install it. Just search on the google about it and it will point you right back at Microsoft. For database, any Microsoft Access database would work though
I suggest you to use Microsoft SQL for the database. SQLExpress are free to use and you can download the management tools too. It's fairly simple to learn and there are abundance of examples out there. You just have to give some effort and search for it. The
company that I'm working with currently, have been developing and maintaining VB 6.0 applications since 2000 and there are a lot of companies still using it. We also revamping the old system into web based application using VB.Net. It's not totally dead. Even
large telephony company still using it and don't want to change just because there are new technology that Microsoft introduced because it will be just a waste. Good job Microsoft for ending the support on VB 6.0 :)
Similar Messages
-
VB6 applications crashes when calling C# dll's in production environment
Hi All,
I'm basically .NET developer, not much aware of VB language or VB visual Basic 6.0.
We are trying to work out with VB application running/ using C# dll's. The scenario is like VB exe applications using C# dll's and C# dll's are referenced to VB application using .tlb file.
In development environment(debug mode) the application looks fine and working as expected. But when the same code is put into production environment VB applications are crashing when pointing to C# method calls. We trying to know the reason but application
is getting killed. The issue seems to be sporadic and not able to catch in MsgView(debug tool).
In one more scenario, the VB application is loading C# form and getting data back to VB but when we repeat the same workflow again application is crashing either in 2nd attempt or 3rd attempt.
Has anybody seen such issue? Any input is welcomed.
Thanks,
SheshHi Shesh.ugare
Welcome to MSDN.
I am afraid that these forums donot support VB6, you could refer to this thread:
Where to post your VB 6 questions
If this issue regarding VB6 then you could consider posting this issue in these forums below:
These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
VB Forums
VB City
If not, then you could share more detailed code with us.
Thanks for your understanding.
Regards.
Youjun Tang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
VB6 - Confusion regarding Acrobat Version and supported methods
I've got an app, created in VB6, that uses the javascript method "addWatermarkFromFile". It works fine on my machine(s) with Acrobat 7 and 9.0. One of the machines that it has been installed on gets an "Object doesn't support this property or method" error. The machine has had several version of Acrobat on it in the past, but is now running 9.4.1. I added a chunk of code to create the AcroExch app and Show it, and the user reports that it launches Acrobat 9.4.1, so I know it's creating an app that should support "addWatermarkFromFile". Is there anything else I can check? I don't know much about the OLE mechanisms. Could a stray acrobat.tlb file cause something like that?
After further review the problem was NOT related to addWatermarkFromFile, but rather was caused when the app called a javascript function that was implemented by the placement of a .js file in the Javascripts directory. The user is now, inconveniently, on vacation, but I'm guessing either the script is not being created (unlikely) or that Javascript (or some portion of the javascript functionality) is disabled.
-
Legacy VB6 project. Can no longer add controls to the form.
Working on a VB6 project that has been in continuous use since 2002. Needed to make a simple mod and add a new control. Choosing any control and attempting to drag it on to the form always fails with a black circle with diagonal bar at the cursor
as soon as the cursor leaves the toolbox.
Reloaded VB6 and SP6. No luck.
Tried a new "Hello World" project but was unable to move any controls from toolbox.
Now the weird part. Went to 4 other old computers that have always worked in the past. All of them failed the "Hello World" test as well.
This is perfectly legal Microsoft Visual Studio Professional load from one of our old MSDN disks. Are these timebombed or something?
The program can be edited, compiled and run with no issues, I just can't add controls to any form.Hi
barry6789,
I am afraid that these forums donot support VB6, you could refer to this thread
Where to post your VB 6 questions
and consider posting this issue in these forums below:
These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
VB Forums
VB City
Thanks for your understanding.
Regards.
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
VB6 and Excel loading then unloading immediately
First off I posted this here
http://social.msdn.microsoft.com/Forums/office/en-US/4c07879b-e033-4e8f-8266-95f9f606923a/vb6-and-excel-loading-then-unloading-immediately?forum=exceldev However I think this is the right forum for this.
We have an old VB6 application that uses data from and to Excel 97-2003 XLS and
Access MDB. This application is slated to be updated to VS2012 and VB.NET. In
the mean time I have a glitch that I cannot seem to find the issue. When we
load the VB6 app it opens Excel 2010 in the background for getting and setting
data. We are set to roll out Office 2010 on everyone’s system and I am still
unable to find why it works fine on two systems and not on others. With Office
2007 everything seems to work just fine.
What happens is when I look at the processes in Task Manager on my Windows 7
Enterprise edition with Office Professional Plus 2010 system while loading
the VB6 app I see?
EXCEL.EXE *32 | "My user name" | 00 CPU | 10,132k | Microsoft Excel
This is normal and stays in process the entire time I run it on my system. I also have
this working on another end users system. However the issue and the fix I used
on our two systems does not seem to work on other systems. I launch the VB6 app
and it comes up.
EXCEL.EXE *32 | "My user name" | 00 CPU | 10,132k | Microsoft Excel
This loads in the processes and then immediately unloads without any errors. Then when I
execute something that needs to use Excel I get.
Run-Time error ‘91’:
Object variable or With block variable not set.
This only happens if Excel unloads immediately otherwise the program works great. There
are no events in any of the event logs and our other IT guy said it is loading
and unloading normally with out crashing.
I have applied this to the systems http://support.microsoft.com/kb/926430/en-us . In
all of my searching this looked like the best answer. However only two systems
are working with Office Professional Plus 2010.
Here are the references and components.
References:
Visual Basic For Applications
Visual Basic runtime objects and procedures
Visual Basic objects and procedures
OLE Automation
Microsoft DAO 3.6 Object Library
Microsoft Excel 5.0 Object Library
Components:
Controls
Desaware Animated Button Control
Microsoft Common Dialog Control 6.0 (SP6)
Microsoft Data Bound Grid Control 5.0 (SP6)
Designers
Dat Environment
Data Report
DHTML Page
WebClass
Code:
Public xlApp As Excel.Application
Public WBSetup As Excel.Workbook
Public objWbCALC As Excel.Workbook
Public objShtLEVELS As Excel.Worksheet
Sub Main()
' There is more code here that is not specific to Excel issue
Set xlApp = Excel.Application
' Get the workbook.
Set objWbCALC = xlApp.Workbooks.Open("c:\temp\Calc.xls")
Set WBSetup = xlApp.Workbooks.Open("c:\temp\Setup.xls")
' Get worksheet
Set objShtLEVELS = objWbCALC.Worksheets("Levels")
' There is more code here that is not specific to Excel issue
End Sub
This is working on one system that had Office 2007 and was upgraded to Office 2010. Working on my system with Office 2010. The EXE file is ran from the server you can install it or add the OCX files to local system and register them with regsvr32. No
new components have been added or changed to the actual VB6 application. It seems to work on two systems and not on other systems.
However our test system have Office 2010 loaded on it and never had office 2007 on it. Maybe there is a residual left over file on it.
Any ideas?
www.ipdg3.comHello,
Thank you for your post.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
I would like to know whether you can get the same issue when you create/load a Visual Basic application rather than VB6 in VS2012. If the issue only occurs when you load VB6 app, as Andrew said, there are other better forums for
VB6 app provided in this thread:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b/where-to-post-your-vb-6-questions?forum=vbgeneral
For example:
VB Forums
VB City
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Iv 10 Tables consisting of atleast 10 fields each in a single Database. Bt, Im only able to connect 1 table at a time to a form using an ADO Control. Im able to add data from table 'student' to text-boxes in my form. Bt, hw can I add data from field(0) of
Table 'Student' to Textbox1 and data from field(0) of Table 'Marks' to Textbox2 using VB6??
This is the current sample coding iv got to connect a single table to a form:
Global con As New ADODB.Connection
Global rs As New ADODB.Recordset
Public Function Connect()
If con.State = 1 Then con.Close
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\bca.mdb;Persist Security Info=False"
End Function
Private Sub Add_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from student", con, adOpenDynamic, adLockOptimistic
rs.AddNew
rs.Fields(0) = (Text1.Text)
rs.Fields(1) = (Text2.Text)
rs.Fields(2) = (Text13.Text)
rs.Fields(3) = (Text4.Text)
rs.Fields(4) = (Text5.Text)
rs.Fields(5) = (Text6.Text)
rs.Fields(6) = (Text7.Text)
rs.Fields(7) = (Text8.Text)
rs.Fields(8) = (Text9.Text)
rs.Fields(9) = (Text10.Text)
rs.Fields(10) = (Text11.Text)
rs.Update
MsgBox " Record Added"
End Sub
What can I do to add fields from 2 different tables to different text boxes within the same form using a single ado control using vb6 and MS Access 2007??Hi,
Since VB6 product is not supported in this forum, you may go to these forums for support:
#Where to post your VB 6 questions
http://social.msdn.microsoft.com/Forums/en-US/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b/where-to-post-your-vb-6-questions
Thank you for your understanding.
Best regards,
Franklin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Connecting to Oracle lite via VB6
Hello
is there a better way to connect to Oracle 10g when using VB6?
this is what I have:
Under references I am using Microsoft DAO 3.6 Object library
I do have a module where I defined the following public variables:
Public wsOracle As DAO.Workspace
Public cnOracle As DAO.Connection
Public strConn As String
and a function to alllow me to connect to the database:
Function ConnectDB()
On Error GoTo Error_DataBaseError
strConn = "ODBC;DSN=MY_DATABASE;UID=user;PWD=passr"
Set wsOracle = DBEngine.CreateWorkspace("", "admin", "admin", dbUseODBC)
wsOracle.DefaultCursorDriver = dbUseClientBatchCursor
Set cnOracle = wsOracle.OpenConnection("", dbDriverNoPrompt, False, strConn)
Error_DataBaseError:
If Err <> 0 Then
Call ErrorCatching("ConnectDB ()")
End If
End Function
It seems to work but I am having issues, two apps are connected to the same Database one is in power builder y the other in VB6 after a certain time of inactivity I get timed out from the VB app and this gets also into the power builder app.
but if one app is open for a long time it seems to work just fine. any ideas why?
I read that I can use the Oracle Lite 40 ODBC Driver
but I can't seem to find a way to do the call from VB6
any ideas?
any enlightenment will be appreciatedUnfortunately, in 2.0 beta, the Infobus Data Form wizard
connection editor only supported the Oracle Thin, OCI7 and OCI8
drivers. For 2.0 production, Oracle Lite and the JDBC-ODBC bridge
will also be supported.
Regards,
JDeveloper Team
Poorna Byri (guest) wrote:
: Hi,
: Can we can connect to Oracle Lite 3.5 from Oracle JDeveloper2.0
: Beta using Infobus Data Form. When I tried to create a file
based
: on "Infobus Based Data Form" wizard it is not displaying Oracle
: Lite 3.5 driver. Can I create a TNS name for Oracle Lite 3.5
: database.
: Any help.
: Thanks.
: Poorna Byri
null -
Transparent splash screen in VB6.0
how to make a transparent splash screen in VB6.0?
how to make a transparent splash screen in VB6.0?
Hi,
I would remind you that VB6 issues are not supported in these forums any more, you could refer to the following thread:
Where to post your VB 6 questions
You could consider posting this issue in these forums below:
These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
VB Forums
VB City
Thanks for your understanding.
In addition, you could also mark any reply as answer which is helpful.
And VB6 is not supported in these IDEs since VS2003, so if you just want to use the IDE to use VB.Net then you could download the Visual Studio from
http://www.visualstudio.com/downloads/download-visual-studio-vs by choosing the one fits your requirements. And here are the resources to get start about VB.net:
http://msdn.microsoft.com/en-us/vstudio/hh388573
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How do I read a R/3 table from VB6 using RFC?
I am using a DLL created in VB6 to connect to an R/3 system. I then call several ABAP functions I have written and exchange data. This all works nicely.
I now have a R/3 function into which I pass a parameter, and it gathers some data into a table which has 3 string fields. I want to pass that data back to my VB6 DLL, and read all the records from the table.
Unfortunately I have absolutely no idea where to start. If someone could post an example of reading data directly from a table I would appreciate it.
Here is the function so far. It passes the parameter "scenario" to the ABAP Function, and then needs to read the table directly.
Dim oR3Func As Object
Dim oFuncLoadDocument As Object
bResult = Logon(oR3Func, "SAP.BAPI.1")
If bResult Then
Set oFuncLoadDocument = oR3Func.Add("ZMT_SET_SCENARIO")
oFuncLoadDocument.exports("SCENARIO") = sScenario
bResult = oFuncLoadDocument.Call
' Retrieve and read table here???
End If
Kind Regards
JackThere are two "generic" function modules to read table data from SAP. The one above and RFC_GET_TABLE_ENTRIES. However, most of the time you want to filter/process the data before it leaves SAP as large data handling is slow in VB. If you have ABAP skills it is often better to develop your own RFC enabled function module.
As of the VB access, there is several OCX you can use, documentation link:
http://help.sap.com/saphelp_46c/helpdata/en/39/7e11e0ac6011d189c60000e829fbbd/frameset.htm
Help title: SAP Automation RFC and BAPI Interfaces (BC-FES-AIT
It's all fairly straightforward once you get into it.
PS I almost always use the functions OCX... -
I need to create a class library in VS2013 that can be referenced by a VB6 application and newer applications. I heard something about
COM Interop but have no idea where to start. I am assuming I would develop a class library in VS2013 and then package the assembly for COM. Any good sample projects on this out there?Hello,
>> Any good sample projects on this out there?
Not suer if you are using C# as the develop language, if it is, i think you would find a lot of articles about this topic with your favorite search engine, here are some related links:
COM Interop Part 1: C# Client Tutorial
COM Interop Part 2: C# Server Tutorial
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi,
I need urgent help on connecting XE database from remote PC via VB6 application, I have install XEClient also on remote PC from where my application running.
I am able to connect to database thru HOME page of XE as well as from SQLPlus, in local machine also my application is running, bu when i run it from remote pc it gives me an error.
PLEASE HELP ME !!!.....Hi Vishal,
here is a simple test script to connect to an oracle instance using OLEDB. Save that as "connectToOracleXE.vbs" and run it from the command line (this will give you the usage):
cscript connectToOracleXE
Option Explicit
Dim g_tnsConnectStr, g_uid, g_pwd
Dim g_objConn
main()
Sub main
If WScript.arguments.count = 0 Then
showUsage()
Else
g_tnsConnectStr = WScript.arguments(0)
g_uid = WScript.arguments(1)
g_pwd = WScript.arguments(2)
WScript.StdOut.WriteLine "g_tnsConnectStr = " + g_tnsConnectStr
WScript.StdOut.WriteLine "g_uid = " + g_uid
WScript.StdOut.WriteLine "g_pwd = *****"
Set g_objConn=nothing
openDatabaseConnection()
doSelect()
closeDatabaseConnection()
End If
End Sub
Sub showUsage
WScript.StdOut.WriteLine ""
WScript.StdOut.WriteLine "Usage: cscript connectToOracleXE.vbs <tnsConnectStr> <user> <pwd>"
WScript.StdOut.WriteLine ""
WScript.StdOut.WriteLine "Bsp. : cscript connectToOracleXE.vbs xe scott tiger"
WScript.StdOut.WriteLine ""
End Sub
Sub doSelect
Dim objRS
Dim objCMD
Dim i
Set objCMD = CreateObject("ADODB.Command")
Set objRS = CreateObject("ADODB.Recordset")
objCMD.ActiveConnection = g_objConn
objCMD.CommandText = "select username from all_users order by username"
objRS.Open objCMD
objRS.movefirst
Do While Not objRS.EOF
WScript.StdOut.WriteLine "User=" & objRS.Fields(0).Value
objRS.movenext
Loop
'Clean up
objRS.Close
set objRS = Nothing
set objCMD= Nothing
End Sub
Sub openDatabaseConnection()
If g_objConn is nothing Then
'MsgBox "open connection"
Set g_objConn = CreateObject("ADODB.Connection")
g_objConn.Open "Provider=OraOLEDB.Oracle;Data Source=" + g_tnsConnectStr + ";User ID=" + g_uid + ";Password=" + g_pwd
End If
End Sub
Sub closeDatabaseConnection()
If Not (g_objConn Is Nothing) Then
'MsgBox "close connection"
g_objConn.Close
Set g_objConn = nothing
End If
End Sub
Function NVL(value, ifnull)
If IsNull(value) Then
NVL = ifnull
Else
NVL = value
End If
End FunctionYour problem could be related to security issues. Please try to run it as the local machine administrator.
http://www.eggheadcafe.com/software/aspnet/31897247/oracleclient-oracle-10g.aspx
Regards,
~Dietmar. -
Vb6 ODBC - Syntax error or access violation in oracle 11g migration
Hi,
We have VB6 application with Oracle 10g and the same is working fine.
Now, we are migrating to Oracle 11g now and we have updated the odbc drivers too.
{ call M_FR(?, ?, ?, ?, ?, ?, ?, ?) }
L_ID = 890083
V_ID = 1
SUB_ID = 6955141
SUB_SEQ = 1
P_CODE = 1
L_SUP_TYPE = 1
L_REF_NO = 1
DELETE_REASON_CODE = 1
When calling the above sp in oracle 11g getting error: [Microsoft][ODBC driver for Oracle]Syntax error or access violation.
But user has all the right and no issue with access. Also no syntax error. In SQLplus the same is working fine.
Kindly help us to resolve this issue.
Regards,
SathiyaTry downloading the latest version of the 8.1.6 driver off OTN.
That sounds like a bug that was fixed a while ago.
Justin -
Using Bulk insert or SQL Loader in VB6
Hi,
I am quite new to the Oracle world and also forums. But I am looking for some directions in how i get a dataset of 10000 records into a table the quickest way. I have the recordset in an ADO Recordset (or a textfile if that is easier) and I want to insert them in an empty Oracle table. The problem is - I don't know how to.
Situation
The Oracle DB is on another computer I have nothing special installed on the computer running the VB6 application.
Can anyone please provide code example or guidelines...
Regards,
ChristianThis may not be "bulk insert" by your definition, but it can transfer data as you want.
A simple VB code for demo purpose:
Dim con As New ADODB.Connection
Dim con2 As New ADODB.Connection
Dim rst As New ADODB.Recordset
Dim rst2 As New ADODB.Recordset
Dim rst3 As New ADODB.Recordset
con.ConnectionString = "Provider=OraOLEDB.Oracle.1;User ID=scott;Password=tiger;Data Source=db_one;"
con.Open
rst.Open "select * from dept", con, adOpenDynamic, adLockOptimistic
'save to a file using ADTG format. You may choose other format.
rst.Save "c:\myfile.txt", adPersistADTG
'dept2 is an empty table with the same table definition as dept. You can create it using SQL*Plus.
'add rows by reading from the saved file.
con2.ConnectionString = "Provider=OraOLEDB.Oracle.1;User ID=xyz;Password=xyz;Data Source=db_two;"
con2.Open
'open the saved file
rst2.Open "c:\myfile.txt"
'rst3 is an empty recordset because dept2 is empty at this time.
rst3.Open "select * from dept2", con2, adOpenDynamic, adLockOptimistic
'adding rows into dept2.
Do Until rst2.EOF
rst3.AddNew Array("deptno", "dname", "loc"), Array(rst2.Fields("deptno"), rst2.Fields("dname"), rst2.Fields("loc"))
rst2.MoveNext
Loop
rst.Close
rst2.Close
rst3.Close
con.Close
con2.Close
Sinclair -
please am doing my project and i need some help in vb6
i need sql statement that will list all product that will expire within 60days based on their expiring date.
this is my code, kindl help me
Adodc6.RecordSource = "Select * from tblproduct where Expdate <= '" & Now.AddMonths(3) & "'"
thank you
Thanks In AdvanHi,
Since this is a Visio forum, if you want to receive more information about SQL code, I recommend you post this problem in SQL forum.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Regards,
Greta Ge
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Memory leak in VB6.0 on Form close
I need some help:
I have made very simple VB6.0 application, in first VB Form (Form1) I start new VB Form (Form2) with CWButton (Measurement Studio 8.0) placed on.
If I close the VB Form2, the memory of the application (in Task Manager) is not going down.
If I start and then close many of times the Form2, the memory usage of the application is increasing (about 4 kByte for each CWButton on the Form2 each time).
How can I fix it?
Best Regards,
Paul.
Maybe you are looking for
-
Infopackage Selections Tab-OLAP Variable/ABAP Routine
Hi Experts In my Infopackage Selections Tab i had Cal Mon/Year field.... As per my requirment i have to write a selection condion that when we execute info package (it is a monthly data load) it will extract data only for the months greater than or
-
Delete all tabs in firefox 3.6.13
I do not use the tab feature in firefox 3.6.13. I tried it but dont use it. I can not get rid of the tabs that i tried, except by right clicking and then delete other tabs each time i open firefox. I would like to permently delete them. I found TAB k
-
I installed a "free" winzip-type app, 7-ZIP and installed some other stuff without notice, including Yahoo and bing. I want my Firefox browser back the way it was before yesterday
-
Performance in a case statement
Hi I have a query like this - SELECT MAX(CASE WHEN field1 = 'xyz' THEN field2 END) AS alias1, MAX(CASE WHEN field2 = 'abc' THEN field2 END) AS alias2 FROM table1 WHERE field1 = 'xyz' and field2 = 'abc' and some fixed condition Please note that the co
-
I keep getting duplicate photos when downloading from my card reader.
In my PSE11 Camera and Card Reader preferences I have checked "Copy new files only". Yet whenever I download a camera card that still contains photos that were previously downloaded, I end up with duplicate photos in PSE11. I prefer to leave my pho