|
Hello Dave,
Thanks for the info, it works.
|
|
|
|
|
Error 1 Column, parameter, or variable #1: Cannot find data type GL_Record. Clrtest
Microsoft.SqlServer.Server.SqlProcedure()
Public Shared Sub sbSetupGLProbe(ByVal Selections As StoredProcedures.GL_Record)
On Error GoTo Err_sbSetupGLProbe
sbBuildGLQuery(Selections)
Exit_sbSetupGLProbe:
Exit Sub
Err_sbSetupGLProbe:
MsgBox(Err.Description)
Resume Exit_sbSetupGLProbe
End Sub
This code will compile and deploy when the Sql Server attribute is omitted but then t_sql cannot see it.
rkj
|
|
|
|
|
It's saying that the type GLRecord doesn't exist, at least not in the StoredProcedures class or namespace.
Why are you using "On Error Goto" when it's been deprecated by Try/Catch?
reykentj wrote: This code will compile and deploy when the Sql Server attribute is omitted
What attribute? Let see the definition as it's supposed to be written.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Error 1 Column, parameter, or variable #1: Cannot find data type GL_Record. Clrtest
Public Class GL_Record
Public AccountNo As String = ""
Public AccountField As String = ""
Public Year As Integer = 0
Public Month As Integer = 0
Public YTD As Decimal = 0
Public MTD As Decimal = 0
Public LastTransAmount As Decimal
Public LastTransDate As Date = "01/01/01"
Public LastTransBy As String = ""
Public LastEffectiveDate As Date = "01/01/01"
Public NumberOfTrans As Long = 0
End Class
<microsoft.sqlserver.server.sqlprocedure()> _
Public Shared Sub sbSetupGLProbe(ByVal Selections As GL_Record)
Dim stDocName As String
Dim result As Long = 0
On Error GoTo Err_sbSetupGLProbe
sbBuildGLQuery(Selections)
stDocName = "rptGL_Probe"
'DoCmd.OpenReport(stDocName, acPreview)
Exit_sbSetupGLProbe:
Exit Sub
Err_sbSetupGLProbe:
MsgBox(Err.Description)
Resume Exit_sbSetupGLProbe
End Sub
On Error is being used because this is a conversion of small modules which may be later converted to try catch
rkj
|
|
|
|
|
Repost the code (Copy and Paste) and make sure you enable the "Ignore HTML tags in this message" checkbox before you hit "Post Message".
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Error 1 Column, parameter, or variable #1: Cannot find data type GL_Record.
Public Class GL_Record
Public AccountNo As String = ""
Public AccountField As String = ""
Public Year As Integer = 0
Public Month As Integer = 0
Public YTD As Decimal = 0
Public MTD As Decimal = 0
Public LastTransAmount As Decimal
Public LastTransDate As Date = "01/01/01"
Public LastTransBy As String = ""
Public LastEffectiveDate As Date = "01/01/01"
Public NumberOfTrans As Long = 0
End Class
<Microsoft.SqlServer.Server.SqlProcedure()> _
Public Shared Sub sbSetupGLProbe(ByVal Selections As StoredProcedures.GL_Record)
Dim stDocName As String
Dim result As Long = 0
On Error GoTo Err_sbSetupGLProbe
sbBuildGLQuery(Selections)
stDocName = "rptGL_Probe"
'DoCmd.OpenReport(stDocName, acPreview)
Exit_sbSetupGLProbe:
Exit Sub
Err_sbSetupGLProbe:
MsgBox(Err.Description)
Resume Exit_sbSetupGLProbe
End Sub
Thank you for that suggestion. This code complies withou error but fails on deployment.
rkj
|
|
|
|
|
urgent!!! Does some body got some code project for BHO with VB or VB.net??? Any sample thats ok,,,thx
|
|
|
|
|
|
thx
do u have AD AUTO-POPUP code inside IE?
|
|
|
|
|
Try with this JavaScript
<SCRIPT TYPE="text/javascript"><br />
<!--<br />
function popup(mylink, windowname)<br />
{<br />
if (! window.focus)return true;<br />
var href;<br />
if (typeof(mylink) == 'string')<br />
href=mylink;<br />
else<br />
href=mylink.href;<br />
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');<br />
return false;<br />
}<br />
</SCRIPT><br />
Regards,
Satips.
|
|
|
|
|
thx,that is useful,,,
Regards
Henry
|
|
|
|
|
Hi everyone
I need to create flowlayout in run time,in fact i did it but the graph that must be drawn on it ,does not show
i use breakpoint ,and i am sure that the procedure of drawing graph work correctly and my mistake is in defining flowlayoutpanel,plz help me to solve the problem
thanks alot
|
|
|
|
|
make sure you have me.controls.add(example) in your code. example being the defined name of your flow layout panel.
Posted by The ANZAC
|
|
|
|
|
Create a user control that contains the 'graph' and the flowlayoutpanel. Then just add the user control during runtime.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Hi,
I need users to click particular cell in list view, and on click need to change its back color.
I am having 3 rows and 4 columns. I need users to able to click on any row, 2 column cells, and on click i need to change its back color?
How to do this, any help?
Rams.
Be simple and Be sample.
|
|
|
|
|
when i run any project in .net, server controls like command button, text boxes, list boxes etc. are not visible. It might be a IIS problem. but how to correct it.
Chaitra N
|
|
|
|
|
Re-Install IIS.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Run aspnet_regiis from your .NET folder, sounds like ASP.NET in not installed. Reinstalling IIS would certainly mean you'd need to do this, before it would work again.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i am developing a project with asp.net web application and vb script. When i try to connect the interface wit the database it is giving errors. I am using datacommand.
what might be the reason for error?
Chaitra N
|
|
|
|
|
n_gchaitra wrote: what might be the reason for error?
How are we supposed to know if you don't supply the error message? A snippet of the code you're using would also help.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
I need to multiply two integers that contain more than the 19 digit limit for long integer variables. At first I thought that I could place both numbers into an array list with each digit occupying a separate places in the array. And while that seems like a good way to get around the whole overflow problem, it still doesn't work because I wouldn't have a place to put the answer while I'm computing it.
It seems like it should be a simple answer to the problem, but I think that I am over thinking. Anyone with any kind of idea on answering this?
|
|
|
|
|
Couldn't you just use decimal instead.
|
|
|
|
|
Yeah, the Decimal type will handle this for you.
Or, if you wait until .NET 3.5, there's a built in BigInteger type you can use that'll work with integers of unlimited size, up to available memory of course.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
You know, that might work. It is an assignment for a ASP.Net 2.0 class where we are writing web services. My professor just says long integers are limited but how would you multiply two of them. I'll try that, maybe.
Thanks
|
|
|
|
|
Hey,
I am working on this project that requires me to save a picture/jpeg to a folder from a scanner.
I have download many twain software to help in the process, but with these software i am unable to complied my program and use it else where because these twain dll are not free, they all needs registration code..i am using vintasoft twain.
here are my questions?
1. does anyone know where i could get twain dll library that allows me to save a jpeg image from a scanner and at the same time its free so i can complied it in my project?
2.Is there a better or easier way of doing this: that is saving an image from a scanner to a file?
3. Does anyone have the vintasoft activation code i could use?
I have found a vb.net sample code that doesn't use any twain dll, but the problem is that it was done in C# and not vb. If any one know how to convert it to vb, please send your email address so i can send it to you to be converted. I have tried online conversion programs..but didn't convert it properly.
Please help..
thanks.
Nab
|
|
|
|