Retrieve Data X Days
I want to retrieve data that 30 days before or 60 days before from access. How can I do it.Using vbscript or SQL language or both?
View RepliesI want to retrieve data that 30 days before or 60 days before from access. How can I do it.Using vbscript or SQL language or both?
View RepliesI have two tables having similiar columns ( i had to do this to compare the values given to me, because both the table data came from different sources)
The tables named are
OFFICERS
token
full_name
division
EMPLOYEE
token
full_name
division
Now the table EMPLOYEE contains more than 5000 records and the table OFFICERS contains around 2400 records which are already present in the EMPLOYEE table.
Now I want to build a query that will return me all the records in the EMPLOYEE table that are not present in the OFFICERS table. The criteria for comparing 'full_name'. so the query should return me 2600 records that are not present in the OFFICERS TABLE.
I tried doing this
" SELECT DISTINCT EMPLOYEE.full_name,EMPLOYEE.token,FROM EMPLOYEE,OFFICERS WHERE EMPLOYEE.full_name<> OFFICERS.full_name"
But this query returns me records that is not present in the OFFICERS table as well as some more 1000 records which are present in both tables.
thanks a lot
I am trying to access the following site with an asp page. I am just starting out with XML
URL
This is my stats page for battlefield Vietnam. I have managed to get a local verison to work if I save the source code of the page above as an xml file on my server, and I use the following code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<% Option Explicit %>
<%
Dim xmlDoc, root
Dim success, player, strData, online ,rank, rp, score, kills, deaths, fttk, kdr
Dim dpm, ftpm, mppr, medals, gold, silver, bronze, rounds
Set xmlDoc = server.CreateObject("msxml2.DOMDocument")
'
What I can't figure out is how to access the data from the external site.
This is my code can you fix it if it have an error
<select>
<%
set rs = Server.CreateObject("ADODB.Recordset")
strSQL = "select cat from events"
rs.ActiveConnection = conn
rs.open strSQL
if not (rs.eof or rs.bof) then
for i = 0 to rs.eof
response.write("<option>" + rs(i) + "</option>")
next
end if
%>
</select>
how to retrieve a data that has been selected using combo box with asp
View Replies View RelatedHow can I retrieve data from Ms Access Database which is located in another computer over the network.
View Replies View RelatedI have a question, is that any other way to retrieve data from another webpage besides using XML object? Because I am using XML object now but give me so much problems.
If I used MSXML2.ServerXMLHTTP object, it gives me time out error:
msxml3.dll error '80072ee2'
The operation timed out
If I used Microsoft.XMLHTTP object, it will hang IE. In both cases, I have to wait for half an hour or more in order for the XML object to be working again. Actually both webpages that's communicating are hosted at the same machine. The main site (ex. aa.domain.com) points to particular folder under it, while another one (ex. bb.domain.com) points to another folder which is two levels up to the first one.
I am trying to get informaton off the URL to display in dropdown menu with asp. not from xml file but data from a URL.
View Replies View RelatedI have problem like that. page1 is sending some variable data to page2 Now page2 have to decide whether it has to redirect it to page10,page20 or page30 basing on the value of a variable1 which is in page1 variable data. I want know how i can access variable data of page1 in page10,page20 or page30.
View Replies View RelatedI'm working with JMailBox app. This is an asp web based pop3 client.
The application has a inconsistency: when forwarded mail arrives, the
system transforms the message into a .msg and .eml file, but this cannot
be displayed on an ASP page. Some times the forwarded message contains
attached files (.doc .xml .pps .pdf .html .zip etc.). These attachments are
those that interest to me to recover.
Hopefully that somebody can help me to find the solution to recover the
content of a .msg or .eml file, including attachments with pure ASP.
I have 4 ASP pages on my site & a DB for each page has a
form pointing at its DB, I thought this would be the
simplest way. You can add & submit data and you get the
confirmation page, but I am seeing no data in my DB's.
Each DB has a CHMOD of 777. Here's the link to what I am
doing most of the test just read "SOME TEXT" Code:
How can I retrieve data from Ms Access Database which is located in another computer over the network.
View Replies View Relatedmy database table have 1 field is use for record the date.Please help me to program the code, so i can retrieve the data recorded from yesterday. That means everyday retrieve yesterday data automatically.
View Replies View RelatedI am trying to retrieve some data from a table which is the link table from another Ms Access database of my network computer but i got a error message "It is already opened exclusively by another user, or you need permission to view its data."
View Replies View RelatedI am using access database to store test results. Each test is asigned a automatic ID number in access. I have all the data collecting fine to the correct columns but had to add a new column named (comments) to the database and this column is made to store students comments on the tests. I created a new, view comments page where the students can view comments on the tests.
The problem I have is, I need to be able to bring up the info from the comment column by that asigned automatic id number thats asigned to the test. I can get it to show all comments on all tests but need to be able to view comments on each seperate test and each test has a diferent automatic id number.
How can I bring up the comments to view by the automatic number thats asigned to each diferent test? We need to view all comments that were made to each individual test by that tests automatic id number and using asp. This has got me puzzled to view comments to each individual test thats asigned with an automatic number generated by access database.
A customer reports a problem with a site that is unable to read utf-8 data from an access data base. The page only shows ? instead of text.
The parameter that turns Unicode support on/off is "on"
DRIVER={Microsoft Access Driver (*.mdb)};useUnicode=yes;
DBQ=C:Inetpubvhostsdomain.comhttpdocspath_to_dbname.mdb [no spaces, so that's not the problem]
Successfully tested ODBC connection -- but still can't read the data. The site has the content type set to CHARSET=utf-8.
there are specific client of mine and there is a big database which i have to handle it, every time clients want to connect to this specific database it takes long time, this database is a static database it means you dont have to edit or update it by the clients, it is like a dictionary, you type your words/code and you will see some data,
I could not find a way to reduce the time for the clients(due to the big database), I am wondering that is it possible to put a copy of this database on client's computer (I have mentioned that there are specific clients and I have access to their computers) within Access Database so in this way I have to run the connection to the access database at clients side, if so what is the coding for it??
How can I retrieve all the records from the database having the following parameter:
in form, these are the fields to be entered:
month (it's a select option)
year
Then from the database the field objrs("strDate")
Scenario: User entered the ff:
month = January (with the value 1)
year = 2004
if in the database the input for the strDate field is having this format: 1/2/2004
How can I retrieve all data for January?
I have 2 tables Table_A and Table_B are linked together by TaID
Table_A
TaID - autonumber
Name
Address
Table_B
TbID - autonumber
TaID
Comments
here is my asp page
-------------------------
<%@ Language="VBScript" %>
<!-- #include file="connectionstring.asp" -->
<%
'declare variables
DIM ......
'Assign Variables
.......
Set Conn = Server.CreateObject("ADODB.Connection")
'database connection
Conn.provider = provider
Conn.ConnectionString = dbasepath
Conn.Open
'Sql statement to insert the data
sql = "insert into Table_A ( Name, Address) values (...*data from form*...)
' execute it
Conn.Execute(sql)
Response.Write "Data successfully inserted!"
Conn.Close
Set Conn = Nothing
--------------------------------------------
my question is I also need to insert the data to Table_B, but before that, I want to retrieve the Table_A.TaID first.
so if i do "select TaID from Table_A" and execute the sql how do I assign just the LAST record of TaID and assign to temp variable?
Do I allow to do that? if so, where should I put in the code above?
Is there any way by using ASP with MS access to retrieve a specific data from a table and when i retrieve i want to show me the data without repeating the same data or duplicating data and i want instead of this to count for each item how many row is there in a the table ....... loooool i know that most of you will tell me to re-explain what i want to say again ... ?
For example i had three rows in the table ... and those rows are the same with 4 attributes ... what i need is to retrieve those rows in the website .. but instead of showing three rows it will show me one and next to this row i want to put 3 which is the number of the rows in the table that are the same and if i have any other rows it will do the same ...
I built a asp website for my baby boy to let my family & friends to view notes and pictures about him and I was wondering if there was a code that I can use to automatically display the "years", "days" old he is based of his birthdate?
display Like this:
1-year 11-months old
Code:
<%
If "DATE_SUB(CURDATE(),INTERVAL 30 DAY)" < rsTest("dat") then
response.write "It is within 30 days"
End if
Else
response.write ""
%>
I am trying to have it show something if the date in my database is within 30 days of the current date.
the script below writes the next seven dates and their weekday names. it works a treat, until it gets within seven days of the end of a month. when that happens, the number of days shrinks and shrinks until the 1st of the next month, when it goes back to normal.
my question is - what needs to be changed here in order for it continue displaying dates into the next month? Code:
I've set up a membership module which allows members to have a validity period of one year.
So if start date is = Date() [which is todays date]
Would the expiry date be Date() + 365 ?
I've got a very simple database holding requests that users have submitted.Once we take care of the request we mark it shipped.There's a check box field in the database which holds this value.
I'd like to create a page that lists all shipped requests for the past 10 days.The SQL is giving me problems though.I'm not sure how to write this out.
i want to add particular days of the week of past two months into a dropdown list according to current date at run time but i am unable to do so can anybody tell me how to do that.
View Replies View RelatedDoes anyone know of a formula that I can use to work out the number of days in a month not including the weekends?
I know I could probably use a loop that checks each day and if it is a weekday it adds to a counter but I'm guessing that would make things run a tad slower and the way this system is running I wouldn't want to make it any slower.
I need to display the count of days on the page where the start date is the result of the record set and the end date is the current date. So if the record set value was 3/04/2007 than the display on the page would be "3" ( with todays date: 3/07/2007 as the end date). I know I need to use datediff(d,???? ) you can see where I get lost.
View Replies View RelatedHow can I check if today is Sunday or Saturday and put it into If EndIf condition.
View Replies View RelatedThere maybe a easy solution but I just can't seem to find it. I've got a membership module that sets up a expiration date of one year since they joined. So I have a DB field called "membershipexpiry" which has the expiration date(). I'm doing up a backend to keep track of membership periods and want to display all memberships that would expire in 30 days. What would the right SQL statement be?
sql = "SELECT * FROM users WHERE membershipexpiry..........".
I want to be able to pull all the records from a table "Accounts" which are more than 7 days old. The attribute "DateCreated" stores the date the account was created.
I've tried "SELECT * FROM Accounts WHERE DateDiff('dd', DateCreated, Now()) > 7" but this is coming up with an error (I'm using MS Access db by the way)
Any ideas or help?
I'm trying to find any examples or instruction on how to code some ASP that enables someone to search an Access db with a date field (mm/dd/yyyy) so many days back (to be specific, the user could select 7 days, 14 days, or 30 days from a pulldown menu) from the current date.
View Replies View RelatedIs there any way of working out a day of the week from a given date?
View Replies View Related