Splitting Awkward Strings And Posting To Access Table

I am creating for an MMORPG (Eve-Online) group a method of logging all ‘kills’ that they produce.

In game each player involved in a kill receives an ingame e-mail style notification as follows. I have set up a basic version whereby to log each mail a player just copys and pastes each bit of required data into individual form fields.

What I would like to set up is a system whereby they can just copy the entire mail into one form field and a script splits it up. I know this is possible as I have seen it on a competitor’s submission page (although they are using php).

I am using DW MX 2004 and using .asp VBscript pages connected by DSN (called dap) to an Access database (called killmail_Backup.mdb) I have an existing table called ‘killmail’ but I’ll probably create a new table for this. Code:

View Replies


ADVERTISEMENT

Saving And Splitting Strings

I want to save a list of values in a cookie. I already use 1 key of the cookie to save the username. What I want to do is save a list of values as one string by using some kind of separator character.

There may be any number of these values including none. What is a good character to use to separate values? What commands do i use to split a string on the separator character into several strings?

View Replies View Related

MS Access - Table Access Problem

I'm trying to access a table in a MS Access database using ASP but the name of the table is causing me some trouble. The problem is the table name has a space in it eg, "My Table".

If i try and access it using a query "SELECT * FROM My News", it says i cant find table "My". If i remove the space from the name (to MyTable) it works fine. But the trouble is its a customers database and i cant easily rename it because its linked to other tables and db's.

How can i access a table with a space in its name? I've tried "SELECT * FROM My_News" but that doesnt work either.

View Replies View Related

Access An Access Link Table

I have an Access DB which contains couple of link tables. All these tables are from different databases. So each one has it's own database password. Since there is no way to save the password during the DSN creation. Then you need to manually type in the password each first time when open the table.

This causes the problem in ASP code during run a query. Since the table cannot be accessed due to the password protection. Is there any statement than can open a table and meanwhile pass the password in? Does anyone experienced with the similar situation?

View Replies View Related

ASP Trying To Access SQL Table..

Trying to access an SQL Table....

'ATTACHMENT'

I have a form that is set up to search the table and attached is the code that is trying to get data from that table.
Need help please, if anyone has any ideas.

This is the error Im getting:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '2003'.

/pub/property/tpp/SearchRes.asp, line 124

I cant figure it out.

View Replies View Related

Retrieve Access Table's

my problem is with a db(that i upload on server every day) which has some "static" tables in it plus a table updated every day.
the website must show the date of last update of that table so i first retrieved that from the access file, but this means that every time i upload db(with that table untouched) the last update changes. i've found something about table's extend properties on the internet but i don't know if this can be useful to me.

View Replies View Related

Updating Access Table Through Web

Can anyone direct me to a web page (tutorial) where there is an explanation on how to create a web page that connects to access database and I can enter data and update the table? I can create a page using visual Interdev that displays the table only.

View Replies View Related

UPDATEing An Access DB Table

trying to run an UPDATE query on an Access DSN.Done the following.Updated DSN to full access.Given write permission on the IIS directory.still getting error, Operation must use anupdateable query.whats going on?

View Replies View Related

Download Table From Access

I have a table in an Access database that I would like to download in an excel spreadsheet. No editing required, I simply want to copy the whole table.

I can connect to the table and, if I wanted, could display the complete data in the table on a web page but importing that data into excel is where I am stuck at.

View Replies View Related

Access DB Table Tbl_faults

Access db with a table tbl_faults

id autonumber
firstname text
lastname text
datelogged date
email address text
faultdesc memo

When a user fills the form with these fields the data get saved to the table AND I would like to see a message saying your unique ID (fault number) is xxxxxxx .

View Replies View Related

CREATE TABLE IN ACCESS

how do you create a table in MS Access from with an asp script? I will be creating the table name from Request.querystring("name"), also needs fields of branchname and branchcode. guess something like CREATE TABLE & Request.querystring("name") branchname. branchcode.

View Replies View Related

Data Into A Access Table

I have coded a form which enters data into a access table however I want the same recordset when clicked to go to another table in the same database then when clicked again to go to another table within that database...is this possible?

View Replies View Related

Advanced MS Access Table

I need some help with creating an MS Access table using ASP. I'm familiar with "standard" SQL statements, and also with the ASP methodology/syntax for creating a simple MS Access table. However, the table I need to create is a bit complicated, because:

The primary key is a FORMATTED auto number (i.e., if I were to define this field directly in MS Access' "Table Design View", I would put "Acme-"000 in the FORMAT field to create an autonumber that automatically generated a series like Acme-001, Acme-002, Acme-003, etc.)

The first part of this formatted autonumber is a variable. So, with this in mind, how do I write an ASP statement to create a table that has an autonumber field as a PRIMARY KEY, formatted per the above?

View Replies View Related

Access Table Creation

I would like to know what the comands/syntax is for creating a table with fields in an Access database using ASP? I've done this a few years ago with visual basic, but haven't been able to find anything for ASP on the internet.

View Replies View Related

Uploaded Txt To An Access Table

I am trying to find out if I can take an user uploaded file. comma delimited txt file. and read this information into an access table. I have the file upload working now I want to read it into a table, all using ASP.

View Replies View Related

UPDATE Operation On An Access Table

I'm trying to run an UPDATE operation, using a command object. I'm getting the error back, Operation must use an updateable query. I'm not sure if I'm doing something wrong here.

Would it be the Command object settings you have to set before executing the command? Can someone tell me what those settings should be for an update query?? Is there a lock on the table from somewhere else???

View Replies View Related

Displaying Data From Access Table

I am calling the values from a table and displaying them in a table, no biggie, i have not used a for loop to create the Html table, rather i have created it myself using a for loop so i can specify the table values i want.

What i am calling from the table is All of the fixtures for the football games in a season but i want to put a seperator or insert a spece of some sort just to seperate the fixtures by date otherwise it just comes out in a long list of fixtures, no nice on the eyes.

here is the code from selecting the data form the table to displaying it:

View Replies View Related

Date Field To MS Access Table

I have more than one date field on my ASP forms (and in the sister MS Access table) I can not write (created the record in Access table) to the table UNLESS there is date data in ALL the date fields on the ASP form.

I need to be able to have the user enter only one date, then do back at a later time and enter the other date.I am using the short date format in Access table (MM/DD/YYYY) When there is only one date field (on ASP form and in Access table) the date is written and the record is created.

View Replies View Related

How To Export A Table From Access DB Using ASP VBScript

How to export a table from Access DB using ASP VBScript. I have tried scripts but I need the export in the form of comma delimited or tab delimited format.

View Replies View Related

Access Table Links To SQL And Web Connection

I have an access database residing on one server that contains necessary data for this application, have sql database that also contains necessary data and resides on another server.

For two access databases I would just "link" the tables and be done with it, but when attempting to do this with ODBC connection to the SQL server I get

Microsoft JET Database Engine error '80004005'

ODBC--connection to 'databasename' failed. Code:

View Replies View Related

Complete An Access Table Through A Select List

I would like to know if it is possible to fill in an access table through a select list inside an APS 3 web page. If yes, how ?

View Replies View Related

Gettin Table Names From A Ms Access Database

Ive got an accces database with a couple of table in it at the moment but this will grow to 5 tables pretty soon then maybe more after that.

I would like to be able to populate a drop down menu with all the table names in the database any ideas how to do this or if its even possible.

View Replies View Related

Import Text File Contains Emails Into Access Table

I copy my emails from microsoft inbox and save it into a textfile and try to read the information and save it into access table. But during i read the textfile i am stuck.

Dim fso, fil, ts, sContents
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fil = fso.getfile(server.mappath("myemails.txt"))
Set ts = fil.openastextstream(1)
sContents = ts.readall
aBuild = Split(sContents, "From:", 2)
sFrom = Split(aBuild(1), vbCrLf, 2)(0)
response.write(sForm)
ts.close
Set ts = nothing
Set fil = nothing
Set fso = nothing

View Replies View Related

Problem On Querying Access Link Table In ASP Page

I connected MS Exchange Server to MS Access database using Access link
table function. I can open the database table and see the fields and
data inside the link table. However, the table seems cannot be queried
by SQL statement.

My situation is:

I'm building an intranet. I have a ASP login page for all staff in the
company to login. Other people can't register or login the intranet.
That's the reason I use the company email address to verify username
login name.

After I made the link to the Global Address List (rename to
StaffList), I can see the Alias field. I wrote ASP code to use Alias
field to verify user login name. But, the ASP page seems experiencing
difficulties. I always got the "Connection Timeout" Error. Code:

View Replies View Related

Update Number In Access Table And Reset It By The End Of The Year

I have an Access table with (among others) a number type field.

I'm building a web form which will add a new record to the same table. My problem is as follows:

I need to retrieve the (number) value from the previous record and increase it by 1 when submitting the new record. Also, this number should reset to 1 whenever a new year occurs.

Was that clear?

View Replies View Related

Display Records From MS Access Tables As A Total In A Table In A ASP Page

I'm trying to display records from an MS Access DB (*.mdb) in an ASP page (table).. I don't want to display all the records though, I just want to display the total of these records..i.e in my table I would like to show how many calls someone has closed this year..(number)

Joe Bloggs ---> 100 Closed

Is this possible? I was thinking that I need to write an ADO that includes COUNT but I'm not too sure how to write this.. Here's what I have so far: Code:

View Replies View Related

Parses And Excel File And Inserts The Data In An Access Table

I have created a script that parses and excel file and inserts the data in an Access table. The script works perfectly fine, however I also need to extract a column comments via my script.Column comment is like a tool tip for any given column and therefore it occurs only on mouse hover, not in the actual column data.

View Replies View Related

Splitting Up A Date

I am having a problem with getting my date to display in the format needed. The date is being called up from a database in the form of the date and time but I need to have the them both seperate from each other. Its for a message board app I'm currently developing. I've tried various methods but none have worked so far. I am using this code at the moment:

<%Response.Write FormatDateTime(sectionRS("MesDate"), vbGeneralDate)%>

The result comes out the same as if no formatting is used. Do I need to create a variable for the value being called up from the database?

View Replies View Related

Splitting Arrays

I have a string that looks like this: a|b|c|d%e|f| ...

I split once on "%"

ar1 = Split(Mystring, "%")

then when I try and split the ar1 by

ar2 = Split(ar1, "|")

I get error '800a000d' Type mismatch

I have tried
ar2 = Split(Cstr(ar1), "|")

How can I split this string?

View Replies View Related

Splitting A String

I have a var with the value of ADED I want to be able to break this var into an array of 4 elements, or it could be three, depending on the value of the variable.
I tried the following but got nothing.
Code:

dim strVar, arrVar
strVar = Request.QueryString("strVar")

arrVar(0) = Left(strVar, 1)
arrVar(1) = Mid(strVar, 2, 1)
arrVar(2) = Mid(strVar, 3, 1)
arrVar(3) = right(strVar, 1)

When I try to response.write(arrVar(2)), i get nothing. What am I doing wrong?

View Replies View Related

Splitting Data

i need to write a query that splits forname and surname that are held in the same col of a db eg old form requested for name(so users just put sarah smith)
but I have added another col forname in the db and the forms now collect forname and surnane into seperate field but I have to now split the old data and put ot into the separate fields can anyone point me in the right direction.

View Replies View Related

Splitting 1 Column Into 2

Pretty basic but I cannot figure it out.

Column:
FULLNAME (lname, fname)

Needs to be

FNAME
LNAME

Should split at the comman.I already have all the columns created; just
need to SQL command to make it happen.

View Replies View Related

Splitting This String

i get the querysting like this:
www.abc.com?email=abc@abc.com phone=33333333
Now i want to split this string so that i can just pass the phone number to the variable in my program so that the fax gets going.

Can you please let me know how i can split this string and just get the phone number to be passed to the variable ,so that i can initialte the next function of send fax?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved