Thanks for your help.
OK, I made the changes and now I'm getting the following error: Invalid procedure call or argument: 'DatePart'
Here is the entire section of code:
If Session("ChapterID")<>"" Then
sqlstatement="SELECT EventDate, detail FROM calendar WHERE...
I am having a problem with the following statement. Can you folks help out?
sqlstatement="SELECT EventDate, detail FROM calendar WHERE (((DatePart('ww',EventDate))=" & datepart("ww",Date()) & " And ChapterID=" & Session("Chapter") & ")) ORDER BY EventDate"
I am getting the following error...
I am having a heck of a time trying to figure out what is wrong with the following chunk of code. Maybe a new look at it from someone else might see the issue. Thanks...
>>>>>>>>> CODE <<<<<<<<<<<<<<<
Dim loConn, lsSQL, loRs
Set loConn = CreateObject("ADODB.Connection")
' Open a connection to...
Do any of you folks have any snippets of how to break up a query results onto several pages. You know, like only showing ten results and then providing a link at that allows the user to page through more pages.
Thanks...
...to do that with a login page (now in aspx)that sets session variables whicj will allow users to enter restricted pages. Those pages are currently *.asp pages.
For some reason the *.asp pages do not seem to get the seesion variables that I created in the login.aspx page.
I made sure that the...
I have created an *acsx file for my navigation. In it there is some logic for the log in button. In the old asp version I checked a session variable to see if user was logged in and if so to replace the log-in button with a log-out button. I am having problem trying to do the same in the asp.net...
Chris,
That is exactly what I'm trying to accomplish.
I will study your code that utilizes the Iframe and css Float.
Thanks for your help.
I had given up on it.
Again thanks...
Mike Diaz
...= New System.Data.SqlClient.SqlConnection(connectionString)
Dim queryString As String = "SELECT * FROM [Agency], [Users] WHERE (([Users].[UserLogin] = @UserLogin"& _
") AND ([Users].[Pass] = @Pass)) AND ([Users].[DeptID] = [Agency].[DeptID])"...
I hardly ever use frames and I am working on a project that requires a page using frames. Please look at it and tell me where I've gone wrong. I can't seem to get everything to fit together nicely.
I'm also going to try and use tables to format the layout.
Thanks...
view page at <A...
What would a SQL statement look like that retrieves records that fall within the current week, using the DatePart('ww',field) function?
Thanks,
Mike...
Thanks Dave.
Actually the fiels I want to update to the table is the EmployeeID.
So I'll Just
UPDATE tblPersonalRecords
Set EmployeeID = t.EmployeeID
from tmpTable t
where t.SSN = tblpersonalrecords.SSN
Again, tahnks,
Mike Diaz...
Here is an easy question, hope I don't affend you.
I have a table = tblPersonalRecords
that has a field "SSN"
Have another table ( tmpTable )that I imported that has "EmployeeID" and "SSN"
The tblPersonalRecords has the EmployeeID field added now I need to...
You need to filter only the records you want like:
Inventory.Source = "SELECT * FROM dbo.Inventory WHERE ProductMake ='" & strTypeProduct & "'"
Where strProductType = to the field that contains the type product.
Mike Diaz...
Here is a snippet:
<%set rs = Server.CreateObject("ADODB.Recordset")
sqlstatement="Select * FROM table"
rs.Open sqlstatement, "DSN=dbName;UID=;PWD=;",1,3
rs.AddNew
rs("column1")=request.form("frField")...
Tarwn,
I know you were not criticizing. I do remember reading something about others being able to view the contents of an include file.
Do you mean that someone can view a .inc file?
If I want to use an asp page for the same purpose do I then just name my include file Something.inc? With a...
I use a fileupload component to upload files.
I have used:
SAFileUp; by softartisans.com
ASPUpLoad; by persits.com
Both of these have extensive properties and methods which allow a user to upload a file. If a file with an existing name already exist then it cancanates a "(1) to the file...
I would dump uploaded files into a single directory or maybe a select few. Keep in mind that the power of your database can be used to administer files and do house keeping. For example, files that need to be pitched after two years can filtered and deleted using a query. The DB knows where the...
Tarwn,
Don't know exactly, maybe it was the way I was brought up...
Just kidding. Thats the way I have always used it. No other reason. I'll research and maybe learn something new.
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.