473,796 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DateAdd Function and error BC30451

I trying to compile a .vb file as such:

vbc /t:library /out:C:\Inetpub\ wwwroot\crm\bin \CRMWebServices .dll
/r:System.dll /r:System.Data.D ll /r:System.Web.Se rvices.dll
/r:System.Xml.dl l C:\Inetpub\wwwr oot\crm\CRMdbSe rvice.vb

In the file I used the function DateAdd. When I compile I get Error BC30451
Name 'DateAdd' is not declared. I have the following imports in my code:

Imports System

Imports System.Data

Imports System.Data.Sql Client

Imports System.Web.Serv ices

Can someone tell me what I need to do to compile this?

THanks!
Nov 17 '05 #1
1 2195
"Matt Tapia" <mt****@inbizse rvices.com> wrote in
news:#E******** ******@tk2msftn gp13.phx.gbl:
I trying to compile a .vb file as such:

vbc /t:library
/out:C:\Inetpub\ wwwroot\crm\bin \CRMWebServices .dll /r:System.dll
/r:System.Data.D ll /r:System.Web.Se rvices.dll /r:System.Xml.dl l
C:\Inetpub\wwwr oot\crm\CRMdbSe rvice.vb

In the file I used the function DateAdd. When I compile I get
Error BC30451 Name 'DateAdd' is not declared. I have the
following imports in my code:

Imports System

Imports System.Data

Imports System.Data.Sql Client

Imports System.Web.Serv ices

Can someone tell me what I need to do to compile this?


Matt,

I'm not a VB.Net programmer, but I believe you also need to add a
reference to Microsoft.Visua lBasic.dll to the vbc.exe command line.
And possibly "Imports Microsoft.Visua lBasic" to your code (?).

Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 17 '05 #2

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

Similar topics

4
10168
by: ey.markov | last post by:
Greetings, I have an A2K application where for a report the user enters a month-end date, and the system must gather transactions for that month. No problem, I thought, I'll just use the DateAdd function for the beginning of the date range, like this: Between DateAdd("m",-1,!!) And !!
0
1423
by: tshad | last post by:
I have an error routine in my Global.asax that gives me a different message than asp.net when you let it give you the error page. My error routine looks like: ******************************************************* Sub Application_Error Dim objMail As New MailMessage objMail.From = "tfs@ftsolutions.com"
10
24088
by: bienwell | last post by:
Hi, I have a question about file included in ASP.NET. I have a file that includes all the Sub functions (e.g FileFunct.vb). One of the functions in this file is : Sub TestFunct(ByVal strInput As String) return (strInput & " test") End Sub
2
3816
by: fabrice | last post by:
Hello I'm getting an error during a .vb file compilation. My command is : vbc /t:library /r:system.web.dll /r:system.dll /r:mscorlib.dll myFile.vb The error is :
0
1324
by: Frank | last post by:
Short Version of Question: Can anyone provide an example of how I should embed the ActiveX and license, and then use it in a function?
2
4557
by: Rich Raffenetti | last post by:
I have the following code. If I do the dateadd function with dateinterval.minute, it works fine and the date/time value is displayed with zero seconds. If I do the dateadd function with dateinterval.second, an error is thrown saying I have an overflow. I would be happy to know if I am doing something wrong or if I could do it differently to get the seconds to display properly. Const largeInteger As Long = &H1C5EA3B5F585F1F Const...
2
2148
by: tshad | last post by:
This has been driving me crazy. I have been trying to get the error handling working on my system and can get parts of it working and others won't work at all. I found that you can't access session variables from Application_Error event, but I need to so I don't need to set up traces to see what they are during an error. I am emailing the error condition to myself when it happens.
2
2526
by: steve589 | last post by:
I've tried this several different ways and regardless, it keeps coming up with an error. Any idea what I'm doing wrong? dTemp = IncomingDate Do While dTemp < ProcessedDate If (dTemp= "12/4/2007") Then NetDays = NetDays - 1 End If dtemp= DateAdd("d", 1, dTemp) Loop
4
17817
by: rodrigo21 | last post by:
Hello, I have one form with a field for entering a date 'orderdate' and another field for entering a days interval 'range'. This form is used to preform a query on a travel tickets database, so that I can search for tickets with dates from ('orderdate') till ('orderdate' + 'range'). For achieving this I have the followiong code: "SELECT * FROM viajes WHERE viajes.fecha BETWEEN DATEADD(Day,'". $_GET ."','". $_GET ."') AND '". $_GET...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10467
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
10201
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
10021
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
9061
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
7558
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
6802
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
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.