I'm having issues with ActionPerformed() functionality in a JFrame. Eclipse thinks everything looks fine, and the GUI loads fine, but I'm getting the following error if I press ANY button. I've removed code for all but basic function to ensure the problem isn't in my other code.
For the...
Hi there--
I've created a bar graph, and the customer wants the series to be colored using a gradient. This is all fine and well, except that when I use gradients, my data labels show up with white boxes around them, which makes it look very tacky.
Strangely enough, if I change one of the...
I've scratched my head too long: anyone?
The snippet below is part of a larger program that accepts user names and scores as user input, then calculates a percentage. I've only included the relevant pieces here.
My trouble is at (line 32):
percent[j] = (votes[j] / totalVotes);
As is, the...
I've got a form which requires date entry by a user. The value entered is checked on the 'post' page to ensure its a valid date. The format entered is always MM/DD/YYYY, including a leading 0 when the month is <10 (IE 06/01/2007). This works great...
...then I also have a form for the user to...
Folks--
I have a date column and a Time column, which I would like to become a single DateTime column. Concatenating the two converts the date to a number, which doesn't really help...ideas?
Folks--
I've seen this in action a million times, but haven't figure out how to do it:
I have a form with, say, 15 fields in it. They're all text entry fields, and have the traditional HTML structure where "Submit" posts the entries to the referenced page.
For Field #7, the data entered is...
Folks--
Background: I have an Access source table that's an archive of projects. Since each project may last more than 1 month, I have a field concatonated at archive time that specifies the date for that record.
In my Crystal 9 report, I have a need to compare hours completed from one month...
I want to check to ensure that a form field being posted to the database is a valid date. The isdate() function doesn't seem to work, given that the form field is passed to the page as a string...and if I attempt to convert an invalid format to a date, it will error out. Ideas?
Thanks!
I'm using an IF statement to check for a valid data type, and redirecting to another page (url stored in a variable) if its invalid. I'm getting an "Expected Statement" error when I use "End If", and I can't figure out why...ideas?
Thanks!
Code:
If vartype(Request.Form("quantity")) <> "2" Then...
I'm selecting a Country name on a Main from and choosing another form to pass that value to. This form is used to dispay business attributes for the chosen country, and some fields do not apply to certain countries.
I would like for the destination form to show/hide specific fields based on the...
I have an html form input which I need to test for a valid numeric entry. Currently, all other data validation is being done at the top of my form post page before the entries are submitted the the database (ASP). In one case, I'm using the subroutine below for an alpha-numeric entry which has a...
My querystring is coming through fine, and my form default values work fine if I substitute plain text for the Request.QueryString code, but my querystring values aren't showing up when coded as follows:
' URL, truncated for this example...
I'm going to try to do this without posting all the code...
In theory, If I do this:
Session("ReadWrite")
Session.Timeout=1
...
Session("ReadWrite")="1"
...
Response.AddHeader "Refresh", "90;URL=index.asp"
Shouldn't Session("readwrite")="1" be reset to Session("readwrite")="" upon the...
I'm storing two different field values in variables, closing my connection, opening a different connection and selecting records based on one of the variables...store values in variables...close connection, reopen and select by the second variable, store values in variables, then print variables...
Hopefully a softball for someone this afternoon:
I'm trying to set the default selection in a form to the current year, and am getting a "type mismatch" when I load the page:
Year:
<select name="Yr">
<option selected="selected">
<% Year(Date) %></option>...
I've got paging implemented to limit each page to 8 records. If (for example) my results are 5 pages long, pages 1-4 work fine, and page 5 gives me the error below. Also, if my results only produce 1 page, I immediately get the error below:
"ADODB.Field (0x80020009)
Either BOF or EOF is True...
This may be more of an HTML question, but it's for a database function, and I hve a feeling I'll find my answer more quickly here:
I want to limit entry on this code to an entry of #AAA## where # is Numeric and A is Alpha, and either notify the user real-time that the format is wrong, or just...
I'm trying to search for/display a specific record in my Access Database, but I'm getting the following error upon posting the search.
Error Type:
Provider (0x80004005)
Unspecified error
/sterilization/update_view_sln.asp, line 10
Occasionally I'll also get an "EOF/BOF or file has been...
Having troubles today...
For the code below, I'm getting the following error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'Packaging_Lot_Number = 05AD17'...
All--
I'm thinking this is one of those problems where there are an extra set of quotes or some other simple character messing it up; I've tried brackets and quotes in various places with no luck...whoever finds Waldo first gets a star!
When run, I get an error:
Error Type:
Microsoft VBScript...
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.