When do you use Set to assign a value to a variable, and when do you use Select?
Set @var1 = 50
or
Select @var1 = 50
What if you need to result of a query, like this one:
Select @var1 = count(*) from table1
The following is code that works in VBA that utilizes the Excel function "Median" from an Access module...
Dim objExcel As Excel.Application
Dim dTemp As Double
Set objExcel = New Excel.Application
dTemp = objExcel.Application.Median(1, 2, 5, 8, 13)
..................
I need to be...
Insert a record in one of the tables on the distribution database and check that in 5 minutes, the same record appears in the subscription database.
hope this helps,
Chris Dukes
Is there a way of setting every thing up within the setup.exe (I use Installshield)?
-I use Installshield, too, but I haven't tried to do this.
I will look into this and if I find anything, I will add
it to this post.
Does every PC need to have Oracle Client installed ?
-Yes, and you have...
paqguy,
Try this...
Dim crpParamDef As CRAXDRT.ParameterFieldDefinition
Dim crpParamDefs As CRAXDRT.ParameterFieldDefinitions
'Open report for manipulation
Set crpReport = crpApplication.OpenReport(ReportFilename)
'Create a variable to relate to the report parameter fields
Set...
The fields have probably been defined as
CHAR(10)
rather than
VARCHAR(10)
Char (10) will always create a field that is 10 characters long. This will be filled with spaces if the fields is actually chorter than 10 Character.
VARCHAR(10) will hold any number of characters upto 10...
...);
END HCC.MMA_TYPES;
/
Create or Replace Package Body HCC.MMA_TYPES IS
PROCEDURE Plan_Events
( v_sorgid IN varchar2,
events_cursor OUT ref_cursor
)
IS
BEGIN
OPEN events_cursor For
select * from...where...=v_sorgid;
RETURN;
END Plan_Events;
END HCC.MMA_TYPES;
...OUT ref_cursor
);
END HCC.MMA_TYPES;
/
Create or Replace Package Body HCC.MMA_TYPES IS
PROCEDURE Plan_Events
( v_sorgid IN varchar2,
events_cursor OUT ref_cursor
)
IS
BEGIN
OPEN events_cursor For
select * from...where...=v_sorgid;
RETURN;
END HCC.MMA_TYPES;
...cursor. For clarification, I am going to paste a copy of a vb call to a procedure that I use everyday as well as the procedure that was called.
'****************************vb*********************
Set cmdStoredProc = New ADODB.Command
With cmdStoredProc
.ActiveConnection =...
...your Procedure is in a package then you need to preface the Procedure Name with the PackageName. Like this "PackageName.ProcedureName".
'**********************************************************
Private Sub ReturnCursorFromOracle()
Dim mvarConn As ADODB.Connection
Dim cmdStoredProc...
My DSN is a system one. I have isolated the cause? Well Sort of... the DSN works fine until I load Novell client software on the machine.
Once that is loaded, you can't log one user off and another one in and have them use the DSN. You have to reboot before a new user can access the DSN.
Even...
I figured I needed to do that, but I'm having trouble with getting it to work...
I've added a standard code module called module1.bas
in module1 under General Declarations, I've placed:
Public objexcel As Excel.Application
Public objWorkbook As Excel.Workbook
Public objWorksheet As...
I installed MDAC 2.7 on a Windows 98 second edition machine that was already running Oracle 8.0.5 client. When the machine rebooted from the installation, I was able to create a DSN using msorcl32.dll, and run my application.
When I logged off, and let another user login to try the...
I had the same problem, so I took DariceLR suggestion "I thought ActiveForm may be of use..."
When you call a modal form from a non-mdi form, you reference that forms objects by using the syntax:
FormName.object.property
I simply replaced FormName with mdiFormName.ActiveForm...
If you go to the properties section of project, and select "Component", you will see three options for version compatibility.
If you do not want to break your Interface, select Binary Compatibility and use the Browse button to select the version of the object that you want it...
dparikh,
I am not sure if this is what you want, but here goes.
I would create a Sub that is called when each control(SSN, FromDate, and ToDate) changes. I don't see in your code where you populate the SSN, but I am assuming that you have a combo box with them in it.
Public Sub sqlReport()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.