This topic is locked
[SOLVED]

 Trouble with BeforeAdd - find existing records

2/2/2010 2:35:14 AM
ASPRunnerPro General questions
D
daveb123 author

I'm a bit new here.
I have been able to use the example on the BeforeAdd Event and Find Existing Records. I can output to the screen both cases, with an existing record and a non existing record. I just don't know how to have it continue the ADD. Do I've tried leaving off the else clause. Do I have to write a new insert query to get this to work?
I'm using ASPRUNNERPRO 6.1 on a Windows 2008 Server 64bit with a SQL Server 2008 database.
Any ideas or insights are appreciated.
Regards, DAVEB

Sergey Kornilov admin 2/2/2010

To continue with record adding make sure BeforeAdd event returns true:

BeforeAdd = True

Exit Function


More info:

http://xlinesoft.com/asprunnerpro/docs/before_record_added.htm

D
daveb123 author 2/2/2010

Geez ... Im an idiot .... works as expected ... Thanks