Thanks guys,
I think the files in the _fpclass folder are a bit hard to understand. There are error traps but it doesn't seem to effect the way Access hands off the error.
Jim's solution looks like it might work but the forms will probably have to be hand coded instead of using the DIW. I haven't had time to look through it all yet but will do that sometime this today.
Thanks again,
Bruce
----- Jim Buyens wrote: -----
I'm surprised that setting constraints in the Access tble
designer doesn't have any effect in an ASP page. However,
this depends on the exact level where Microsoft coded the
constraint processing. There *are* some settings, such as
default formatting, that only take effect in Access forms
and reports.
Barring that, to achieve this level of customization,
you'd need to write your own ASP or ASP.NET code by hand.
For example, if you only want the same combination of
first and last name to appear once in the database, you
would first code a SELECT statement like:
SELECT Count(*) FROM EMPLOYEES
WHERE FIRSTNAME = 'GEORGE' AND LASTNAME = 'WASHINGTON'
Then, only if that query returned nothing, you would
perform an INSERT such as:
INSERT INTO EMPLOYEES (FIRSTNAME, LASTNAME)
VALUES ('GEORGE', 'WASHINGTON')
For a simple example of the insert code (without the
duplicate checking), browse:
Saving Form Data in a Database
http://www.interlacken.com/winnt/tips/tipshow.aspx?tip=44
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
-----Original Message-----
I asked this in thr programming section in a confusing
maner. I figured giving it another shot wouldn't hurt but
this time use the KISS technique.
Here goes:
FrontPage 2002
Acess 2002
IIS 5
interface wizard (DIW). Modified them to our needs and
both work great.
My question:
Is there a way to stop duplicate entries that are being
posted through the submission form and warn the user when
there is a duplicate entry?