473,729 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Addressing Multiple Proc Parameters

Hello,
I have a situation in which I need to address three SQL Server 2000
Stored Procedure parameters in the OnClick event of an Option Group.
The Option Group lives on an Access 2000 ADP form.

In another situation where I had to set the RowSource of a combo box
based on a parameter value that was delivered to a proc from another
combo box, I did this:

Private Sub FirstCombo_Afte rUpdate()

Me.SecondCombo. RowSource = "EXEC dbo.ADStudentCo mbo_sp " &
Me.FirstCombo

End Sub

The above code sets the RowSource of the SecondCombo to the result of
the execution of dbo.ADStudentCo mbo_sp and the parameter sent to the
proc from the bound column of FirstCombo.

In my current situation, I just need to execute a proc and send three
parameters to the proc during the OnClick event. I started to try the
following:

Private Sub Completed_Click ()
If Me.Completed = 1 Then
"Exec dbo.ADTestProce ssEvaluator_sp " & Me.Permnum & Me.TestGrade
& Me.TestShortNam e
End If
End Sub

The actual parameters in the proc are as follows:
@Permnum varchar (12),
@TestGrade smallInt,
@TestShortName nvarchar (8)

How can I properly address the proc and its parameters during the
OnClick event of the ‘Completed' Option Group?

Thank you for your help!

CSDunn
Nov 12 '05 #1
8 2081
Am Tue, 13 Apr 2004 04:46:29 -0700 schrieb CSDunn:
Hello,

Private Sub FirstCombo_Afte rUpdate()

Me.SecondCombo. RowSource = "EXEC dbo.ADStudentCo mbo_sp " &
Me.FirstCombo

End Sub

The above code sets the RowSource of the SecondCombo to the result of
the execution of dbo.ADStudentCo mbo_sp and the parameter sent to the
proc from the bound column of FirstCombo.

In my current situation, I just need to execute a proc and send three
parameters to the proc during the OnClick event. I started to try the
following:

Private Sub Completed_Click ()
If Me.Completed = 1 Then
"Exec dbo.ADTestProce ssEvaluator_sp " & Me.Permnum & Me.TestGrade
& Me.TestShortNam e
End If
End Sub

The actual parameters in the proc are as follows:
@Permnum varchar (12),
@TestGrade smallInt,
@TestShortName nvarchar (8)

How can I properly address the proc and its parameters during the
OnClick event of the ‘Completed' Option Group?

Thank you for your help!

CSDunn


Hello,

I don't have the code right now,
but to do this I would use the Command-Object.
With this you can pass parameters to the procedure and
retrieve parameters from a procedure.

HTH
Karpi
<fluctuat nec mergitur>

Nov 12 '05 #2
CSDunn wrote:
Hello,
I have a situation in which I need to address three SQL Server 2000
Stored Procedure parameters in the OnClick event of an Option Group.
The Option Group lives on an Access 2000 ADP form.

In another situation where I had to set the RowSource of a combo box
based on a parameter value that was delivered to a proc from another
combo box, I did this:

Private Sub FirstCombo_Afte rUpdate()

Me.SecondCombo. RowSource = "EXEC dbo.ADStudentCo mbo_sp " &
Me.FirstCombo

End Sub

The above code sets the RowSource of the SecondCombo to the result of
the execution of dbo.ADStudentCo mbo_sp and the parameter sent to the
proc from the bound column of FirstCombo.

In my current situation, I just need to execute a proc and send three
parameters to the proc during the OnClick event. I started to try the
following:

Private Sub Completed_Click ()
If Me.Completed = 1 Then
"Exec dbo.ADTestProce ssEvaluator_sp " & Me.Permnum & Me.TestGrade
& Me.TestShortNam e
End If
End Sub

The actual parameters in the proc are as follows:
@Permnum varchar (12),
@TestGrade smallInt,
@TestShortName nvarchar (8)

How can I properly address the proc and its parameters during the
OnClick event of the ‘Completed' Option Group?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You need commas separating the parameters and you could use quotes
around the varchar parameters, in case they contain blanks.

If you just need to run the SP, use the Execute method of the Connection
object. E.g.:

dim cn as new adodb.connectio n
dim strSQL as string

strSQL = "Exec ADTestProcessEv aluator_sp '" & _
Me.Permnum & "'," & Me.TestGrade & _
",'" & Me.TestShortNam e & "'"

cn.open CurrentProject. Connection
cn.execute strSQL, , adCmdStoredProc

If you need to get a recordset back from the SP:

dim cn as new adodb.connectio n
dim rs as adodb.recordset
dim strSQL as string
dim lngRecords as long

strSQL = "Exec ADTestProcessEv aluator_sp '" & _
Me.Permnum & "'," & Me.TestGrade & _
",'" & Me.TestShortNam e & "'"

cn.open CurrentProject. Connection
set rs = cn.execute(strS QL, lngRecords, adCmdStoredProc )

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQHwq7oechKq OuFEgEQItuACg7s gDJghMv6nEzyQTh oW9mhnmMTwAoOjw
OFywcVNzjXWlcOG en2NTZ20H
=TSKM
-----END PGP SIGNATURE-----

Nov 12 '05 #3

Thank you. Could you please provide some sample code when you have a
chance?

CSDunn

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #4
MGFoster,
Thank you for your help!

CSDunn

MGFoster <me@privacy.com > wrote in message news:<RV******* **********@news read1.news.pas. earthlink.net>. ..
CSDunn wrote:
Hello,
I have a situation in which I need to address three SQL Server 2000
Stored Procedure parameters in the OnClick event of an Option Group.
The Option Group lives on an Access 2000 ADP form.

In another situation where I had to set the RowSource of a combo box
based on a parameter value that was delivered to a proc from another
combo box, I did this:

Private Sub FirstCombo_Afte rUpdate()

Me.SecondCombo. RowSource = "EXEC dbo.ADStudentCo mbo_sp " &
Me.FirstCombo

End Sub

The above code sets the RowSource of the SecondCombo to the result of
the execution of dbo.ADStudentCo mbo_sp and the parameter sent to the
proc from the bound column of FirstCombo.

In my current situation, I just need to execute a proc and send three
parameters to the proc during the OnClick event. I started to try the
following:

Private Sub Completed_Click ()
If Me.Completed = 1 Then
"Exec dbo.ADTestProce ssEvaluator_sp " & Me.Permnum & Me.TestGrade
& Me.TestShortNam e
End If
End Sub

The actual parameters in the proc are as follows:
@Permnum varchar (12),
@TestGrade smallInt,
@TestShortName nvarchar (8)

How can I properly address the proc and its parameters during the
OnClick event of the ‘Completed' Option Group?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You need commas separating the parameters and you could use quotes
around the varchar parameters, in case they contain blanks.

If you just need to run the SP, use the Execute method of the Connection
object. E.g.:

dim cn as new adodb.connectio n
dim strSQL as string

strSQL = "Exec ADTestProcessEv aluator_sp '" & _
Me.Permnum & "'," & Me.TestGrade & _
",'" & Me.TestShortNam e & "'"

cn.open CurrentProject. Connection
cn.execute strSQL, , adCmdStoredProc

If you need to get a recordset back from the SP:

dim cn as new adodb.connectio n
dim rs as adodb.recordset
dim strSQL as string
dim lngRecords as long

strSQL = "Exec ADTestProcessEv aluator_sp '" & _
Me.Permnum & "'," & Me.TestGrade & _
",'" & Me.TestShortNam e & "'"

cn.open CurrentProject. Connection
set rs = cn.execute(strS QL, lngRecords, adCmdStoredProc )

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQHwq7oechKq OuFEgEQItuACg7s gDJghMv6nEzyQTh oW9mhnmMTwAoOjw
OFywcVNzjXWlcOG en2NTZ20H
=TSKM
-----END PGP SIGNATURE-----

Nov 12 '05 #5
MGFoster,
I attempted to incorporate your code suggestion for executing the
proc, as follows:

Private Sub Completed_Click ()
DoCmd.RunComman d acCmdSaveRecord
Dim ctlCurrent As Control
If Me.Completed = 1 Then
'************** *************
Dim cn As New adodb.Connectio n
Dim strSQL As String

strSQL = "Exec ADTestProcessEv aluator_sp '" & _
Me.Permnum & "'," & Me.TestGrade & _
",'" & Me.TestShortNam e & "'"

cn.Open CurrentProject. Connection
cn.Execute strSQL, , adCmdStoredProc

'Lock the Combo Boxes in the Detail Section
For Each ctlCurrent In Me.Detail.Contr ols
If ctlCurrent.Cont rolType = acComboBox Then
ctlCurrent.Lock ed = True
End If
Next ctlCurrent
'************** **************
ElseIf Me.Completed = 0 Then
'Unlock the Combo Boxes in the Detail Section
For Each ctlCurrent In Me.Detail.Contr ols
If ctlCurrent.Cont rolType = acComboBox Then
ctlCurrent.Lock ed = False
End If
Next ctlCurrent

End If
End Sub
This code is implemented in the OnClick event of an Option Group. The
option group is build on a field called 'Completed'. When one of two
options in the group is clicked, the record is saved, and the OnClick
event evaluates the field 'Completed' for zero or one. If 'Completed'
= 1, then the proc is executed with parameters, and the combo boxes in
the detail section are locked. If 'Completed' = 0, then the combo
boxes are unlocked.

When I tested the OnClick event of the option group, I received an
error that expressed a 'Syntax error or access violation' Run-time
error at the following line:

cn.Execute strSQL, , adCmdStoredProc

I checked my permissions to the proc in SQL Server, and everything
looks okay. What else could be causing the error?

Thanks again!

CSDunn
MGFoster <me@privacy.com > wrote in message news:<RV******* **********@news read1.news.pas. earthlink.net>. ..
CSDunn wrote:
Hello,
I have a situation in which I need to address three SQL Server 2000
Stored Procedure parameters in the OnClick event of an Option Group.
The Option Group lives on an Access 2000 ADP form.

In another situation where I had to set the RowSource of a combo box
based on a parameter value that was delivered to a proc from another
combo box, I did this:

Private Sub FirstCombo_Afte rUpdate()

Me.SecondCombo. RowSource = "EXEC dbo.ADStudentCo mbo_sp " &
Me.FirstCombo

End Sub

The above code sets the RowSource of the SecondCombo to the result of
the execution of dbo.ADStudentCo mbo_sp and the parameter sent to the
proc from the bound column of FirstCombo.

In my current situation, I just need to execute a proc and send three
parameters to the proc during the OnClick event. I started to try the
following:

Private Sub Completed_Click ()
If Me.Completed = 1 Then
"Exec dbo.ADTestProce ssEvaluator_sp " & Me.Permnum & Me.TestGrade
& Me.TestShortNam e
End If
End Sub

The actual parameters in the proc are as follows:
@Permnum varchar (12),
@TestGrade smallInt,
@TestShortName nvarchar (8)

How can I properly address the proc and its parameters during the
OnClick event of the ‘Completed' Option Group?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You need commas separating the parameters and you could use quotes
around the varchar parameters, in case they contain blanks.

If you just need to run the SP, use the Execute method of the Connection
object. E.g.:

dim cn as new adodb.connectio n
dim strSQL as string

strSQL = "Exec ADTestProcessEv aluator_sp '" & _
Me.Permnum & "'," & Me.TestGrade & _
",'" & Me.TestShortNam e & "'"

cn.open CurrentProject. Connection
cn.execute strSQL, , adCmdStoredProc

If you need to get a recordset back from the SP:

dim cn as new adodb.connectio n
dim rs as adodb.recordset
dim strSQL as string
dim lngRecords as long

strSQL = "Exec ADTestProcessEv aluator_sp '" & _
Me.Permnum & "'," & Me.TestGrade & _
",'" & Me.TestShortNam e & "'"

cn.open CurrentProject. Connection
set rs = cn.execute(strS QL, lngRecords, adCmdStoredProc )

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQHwq7oechKq OuFEgEQItuACg7s gDJghMv6nEzyQTh oW9mhnmMTwAoOjw
OFywcVNzjXWlcOG en2NTZ20H
=TSKM
-----END PGP SIGNATURE-----

Nov 12 '05 #6
I'm not exactly following what you are trying to accomplish here, but it
sound like you want to set the rowsource of a combobox based on some
parameters sent to an sp in sql server. If this is the case then I
would retrieve the dataset from the sqlserver sp and write it to a table
in Access that the combobox rowsource is based on. You can have a
standalone sub in Access that you call from your option group. I
presume the option group is where the params are set. Here is code for
the sub:

Call this sub from your option group where you set the param values for
var1, var2, var3:

Sub RunSP(var1 As String, var2 As Integer, var3 As String)
Dim cmd As New ADODB.Command
Dim RSado As New ADODB.Recordset
Dim RSdao As DAO.Recordset

cmd.ActiveConne ction = "Provider=SQLOL EDB;Data Source=yourSqlS erver;" _
& "Initial Catalog=yourSql DB;UID=SA;PWD=t iger;"
cmd.CommandTime out = 600
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "yourSqlstoredP roc"
cmd.Parameters( "@Permnum").Val ue = var1
cmd.Parameters( "@TestGrade").V alue = var2
cmd.Parameters( "@TestShortName ").Value = var3
Set RSado = cmd.Execute
Set RSdao = CurrentDb.OpenR ecordset("tblcb oRowsource")
DoEvents
Do While Not RSado.EOF
RSdao.AddNew
For i=0 To RSdao.Fields.Co unt-1: RSdao(i)=RSado( i): Next
RSdao.Update
RSado.MoveNext
Loop
RSado.Close
RSdao.Close
cmd.ActiveConne ction.Close
End Sub

Then you can requery your combobox refresh the form and you have your
rowsource. Also, for Acc2K the 2nd recordset object could also be an
ADODB recordset set to the current project. I think you also need a
reference to Microsoft ActiveX data Object 2.6 or higher for this to be
able to communicate with Sql Server2k (don't think it happens by default
in Acc2k - and definitely not in acc97)

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #7
CSDunn wrote:
MGFoster,
I attempted to incorporate your code suggestion for executing the
proc, as follows:

Private Sub Completed_Click ()
DoCmd.RunComman d acCmdSaveRecord
Dim ctlCurrent As Control
If Me.Completed = 1 Then
'************** *************
Dim cn As New adodb.Connectio n
Dim strSQL As String

strSQL = "Exec ADTestProcessEv aluator_sp '" & _
Me.Permnum & "'," & Me.TestGrade & _
",'" & Me.TestShortNam e & "'"

cn.Open CurrentProject. Connection
cn.Execute strSQL, , adCmdStoredProc

'Lock the Combo Boxes in the Detail Section
For Each ctlCurrent In Me.Detail.Contr ols
If ctlCurrent.Cont rolType = acComboBox Then
ctlCurrent.Lock ed = True
End If
Next ctlCurrent
'************** **************
ElseIf Me.Completed = 0 Then
'Unlock the Combo Boxes in the Detail Section
For Each ctlCurrent In Me.Detail.Contr ols
If ctlCurrent.Cont rolType = acComboBox Then
ctlCurrent.Lock ed = False
End If
Next ctlCurrent

End If
End Sub
This code is implemented in the OnClick event of an Option Group. The
option group is build on a field called 'Completed'. When one of two
options in the group is clicked, the record is saved, and the OnClick
event evaluates the field 'Completed' for zero or one. If 'Completed'
= 1, then the proc is executed with parameters, and the combo boxes in
the detail section are locked. If 'Completed' = 0, then the combo
boxes are unlocked.

When I tested the OnClick event of the option group, I received an
error that expressed a 'Syntax error or access violation' Run-time
error at the following line:

cn.Execute strSQL, , adCmdStoredProc

I checked my permissions to the proc in SQL Server, and everything
looks okay. What else could be causing the error?

< SNIP previous posts >

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It's probably a syntax error in the strSQL string. Place a breakpoint
on the line:

cn.Execute strSQL, , adCmdStoredProc

and run the code. When the code breaks check the value of the strSQL.
Make sure that all the parameters are in place (not nulls). If you
want, you may try running the strSQL string value in the MS SQL Query
Analyzer. If that works, then we know the strSQL string command is OK.
If it fails in the Analyzer, post the strSQL string & I'll look at it to
determine why it is syntatically incorrect.

If the strSQL string looks OK, continue the run. If you get another
error, change the adCmdStoredProc to adCmdText. I believe this may be
the cause of the error: adCmdStoredProc means the strSQL is the name of
a stored procedure. Perhaps "Exec ADTestProcessEv aluator_sp ..." etc.
is not considered a stored procedure's name, but a SQL script.

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQH2TT4echKq OuFEgEQJuhwCg5s EnZDEzLdD1g+5LB KSw1gXxcc4AoKSt
g3S1dMG/9gnDflF5ZRmBfdz F
=bkLH
-----END PGP SIGNATURE-----

Nov 12 '05 #8
MGFoster,
I checked the SQL syntax in QA, and examined the values in the code.
The results led me to look into couple of items in MSDN on the
'EXECUTE' method.

After this research, I found I was able to solve the problem by
changing 'adCmdStoredPro c' to 'adCmdText'.

Imagine that! An answer from MSDN!

Big thanks again for your help!

CSDunn

MGFoster <me@privacy.com > wrote in message news:<9r******* **********@news read2.news.pas. earthlink.net>. ..
CSDunn wrote:
MGFoster,
I attempted to incorporate your code suggestion for executing the
proc, as follows:

Private Sub Completed_Click ()
DoCmd.RunComman d acCmdSaveRecord
Dim ctlCurrent As Control
If Me.Completed = 1 Then
'************** *************
Dim cn As New adodb.Connectio n
Dim strSQL As String

strSQL = "Exec ADTestProcessEv aluator_sp '" & _
Me.Permnum & "'," & Me.TestGrade & _
",'" & Me.TestShortNam e & "'"

cn.Open CurrentProject. Connection
cn.Execute strSQL, , adCmdStoredProc

'Lock the Combo Boxes in the Detail Section
For Each ctlCurrent In Me.Detail.Contr ols
If ctlCurrent.Cont rolType = acComboBox Then
ctlCurrent.Lock ed = True
End If
Next ctlCurrent
'************** **************
ElseIf Me.Completed = 0 Then
'Unlock the Combo Boxes in the Detail Section
For Each ctlCurrent In Me.Detail.Contr ols
If ctlCurrent.Cont rolType = acComboBox Then
ctlCurrent.Lock ed = False
End If
Next ctlCurrent

End If
End Sub
This code is implemented in the OnClick event of an Option Group. The
option group is build on a field called 'Completed'. When one of two
options in the group is clicked, the record is saved, and the OnClick
event evaluates the field 'Completed' for zero or one. If 'Completed'
= 1, then the proc is executed with parameters, and the combo boxes in
the detail section are locked. If 'Completed' = 0, then the combo
boxes are unlocked.

When I tested the OnClick event of the option group, I received an
error that expressed a 'Syntax error or access violation' Run-time
error at the following line:

cn.Execute strSQL, , adCmdStoredProc

I checked my permissions to the proc in SQL Server, and everything
looks okay. What else could be causing the error?

< SNIP previous posts >

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It's probably a syntax error in the strSQL string. Place a breakpoint
on the line:

cn.Execute strSQL, , adCmdStoredProc

and run the code. When the code breaks check the value of the strSQL.
Make sure that all the parameters are in place (not nulls). If you
want, you may try running the strSQL string value in the MS SQL Query
Analyzer. If that works, then we know the strSQL string command is OK.
If it fails in the Analyzer, post the strSQL string & I'll look at it to
determine why it is syntatically incorrect.

If the strSQL string looks OK, continue the run. If you get another
error, change the adCmdStoredProc to adCmdText. I believe this may be
the cause of the error: adCmdStoredProc means the strSQL is the name of
a stored procedure. Perhaps "Exec ADTestProcessEv aluator_sp ..." etc.
is not considered a stored procedure's name, but a SQL script.

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQH2TT4echKq OuFEgEQJuhwCg5s EnZDEzLdD1g+5LB KSw1gXxcc4AoKSt
g3S1dMG/9gnDflF5ZRmBfdz F
=bkLH
-----END PGP SIGNATURE-----

Nov 12 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
4281
by: EmbersFire | last post by:
I'm using a stored proceedure which should update a number of rows in a table depending on a key value supplied (in this case 'JobID'). But what's happening is when I call the proc from within the program, only one row gets updated. So When I call the proc from Query Analyser, all rows get updated. When I call the proc from within the program, only one row gets updated
11
3487
by: ColdCanuck | last post by:
Greetings! I am VERY new to DB2 but not Orable, Sybase and SQL Server. I am trying to call a stored procedure via VB 6 and ADO/OLEDB. But when I try to execute
8
394
by: CSDunn | last post by:
Hello, I have a situation in which I need to address three SQL Server 2000 Stored Procedure parameters in the OnClick event of an Option Group. The Option Group lives on an Access 2000 ADP form. In another situation where I had to set the RowSource of a combo box based on a parameter value that was delivered to a proc from another combo box, I did this: Private Sub FirstCombo_AfterUpdate()
6
2266
by: David Lozzi | last post by:
Here is the proc: CREATE PROCEDURE . @CID as int, @Netname as nvarchar(25), @Return as int OUTPUT AS IF EXISTS (SELECT DISTINCT netname FROM computers WHERE CompanyID = @CID AND UPPER(netname) = UPPER(@Netname))
2
1537
by: Asha | last post by:
greetings, i'm doing a multiple insert into the db through a store proc. i'm very sure the sp has nothing wrong. below are my implementation code and error msg. thanks in advance for the help objCmd.Connection = objConn objCmd.CommandType = CommandType.StoredProcedure objCmd.CommandText = "pr_AUDIT_UPLOAD_UpdateStkCntAud" With objds.Tables(0) For intx = 0 To .Rows.Count - 1
6
1439
by: Roy | last post by:
Hey all, I'm a relative newcomer to asp.net and have 2 simple code snippets below. Everything works fine, I'm just curious if there is a more efficient way to do the job as the update takes quite a while. Here's the proc: **************************************** CREATE PROCEDURE @Recon char(10), @Book nvarchar(50), @Van nvarchar(5),
1
2335
by: Phil Mc | last post by:
Trying to call a stored proc but some times don't want to have values inserted in some fields. Hi I am rewriting a VBS script which called a stored proc in a SQL server db. The proc takes a number of values both char and floats. Sometime it is a requirement that the stored proc will not be given a values for some of the floats.
0
1332
by: gerritmitchell | last post by:
Hi, I have a situation where I need to send a SOAP message from a receiver through multiple intermediaries and then to an ultimate receiver. The intial sender will tell the intermediary where to send the message to next within the service chain. SOAP targeted headers and SOAP roles seem to suppor this quite well. My question is can this be used in conjunction with WS-Addressing? Meaning can I send a WS-Addressing compliant message...
1
4503
by: Eric Effer | last post by:
Hi I am a newbie with vb.net. I am working with vb.net 2.0 and sql server 2005. I am trying to get the return value from my insert stored proc.Does anyone know how to do this? thanks E
0
8763
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9202
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9148
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8151
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.