Advertisement
Advertisement
| 02.25.2008 at 01:57AM PST, ID: 23189730 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 02.25.2008 at 02:04AM PST, ID: 20974040 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: |
Dim cnn As ADODB.Connection
Dim cmd As New ADODB.Command
Set cnn = CurrentProject.Connection
Set cmd = New ADODB.Command
With cmd
.ActiveConnection = cnn
.CommandText = "dbo.GetPlanID"
.CommandType = adCmdStoredProc
.Execute Parameters:=Array(param1,param2)
End With
Set cmd = Nothing
Set cnn = Nothing
|
| 02.25.2008 at 06:50AM PST, ID: 20975773 |
| 02.25.2008 at 09:07AM PST, ID: 20977187 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: |
'***************
Option 1
'***************
Dim cnn As ADODB.Connection
Dim cmd As New ADODB.Command
dim rst as ADODB.Recordset
Set cnn = CurrentProject.Connection
Set cmd = New ADODB.Command
With cmd
.ActiveConnection = cnn
.CommandText = "dbo.GetPlanID"
.CommandType = adCmdStoredProc
set rst = .Execute Parameters:=Array(param1,param2)
End With
debug.print "The returned value is " & rst.Fields(0)
Set cmd = Nothing
Set cnn = Nothing
'***************
Option 2
'***************
Dim cnn As ADODB.Connection
Dim cmd As New ADODB.Command
dim rst as ADODB.Recordset
Set cnn = CurrentProject.Connection
Set cmd = New ADODB.Command
With cmd
.ActiveConnection = cnn
.CommandText = "dbo.GetPlanID"
.CommandType = adCmdStoredProc
cmd.CommandText = "{? = call GetPlanID(?,?) }"
cmd.Parameters.Append cmd.CreateParameter("RetVal", adInteger, adParamReturnValue)
cmd.Parameters.Append cmd.CreateParameter("Param1", adVarChar, adParamInput, 20)
cmd.Parameters.Append cmd.CreateParameter("Param2", adVarChar, adParamInput, 10)
cmd.Parameters("Param1") = CStr(param1)
cmd.Parameters("Param2") = param2
.Execute
debug.print "The returned value is " & cmd.Parameters("RetVal")
End With
Set cmd = Nothing
Set cnn = Nothing
|
| 02.25.2008 at 12:34PM PST, ID: 20978936 |
| 02.26.2008 at 03:17AM PST, ID: 20983181 |
| 02.26.2008 at 03:30AM PST, ID: 20983259 |
| 02.26.2008 at 04:13AM PST, ID: 20983515 |
| 02.26.2008 at 04:23AM PST, ID: 20983573 |
| 02.27.2008 at 01:39PM PST, ID: 20998711 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: |
Dim cnn As ADODB.Connection
Dim cmd As New ADODB.Command
Dim lRet As Long
Set cnn = CurrentProject.Connection
Set cmd = New ADODB.Command
With cmd
.ActiveConnection = cnn
.CommandText = "dbo.TestReturn"
.CommandType = adCmdStoredProc
.Parameters.Append .CreateParameter("@TD", adInteger, adParamInput)
.Parameters.Append .CreateParameter("@TR", adInteger, adParamInput)
.Parameters.Append .CreateParameter("@RID", adInteger, adParamOutput)
.Parameters("@TD").Value = 65
.Parameters("@TR").Value = 72
.Execute
lRet = .Parameters("@RID").Value
End With
Set cmd = Nothing
Set cnn = Nothing
|