This topic is locked

how to put one user edit to one record and can't add mor record

8/7/2008 7:31:35 AM
ASPRunnerPro General questions
O
omar882 author

how to put one user edit to one record and can't add mor record in the web cars
put one car not more
thanks

J
Jane 8/7/2008

Hi,
you can check number of added record for logged in user in the Add page: Before process event on the Events tab.

Here is a sample:

str = "select count(*) from TableName where AddedByFieldName='" & Session("UserID") & "'"

Set rstmp = server.CreateObject("ADODB.Recordset")

rstmp.open str,dbConnection
if rstmp(0)>0 then

response.redirect "TableName_add.asp"

end if
rstmp.close

set rstmp=nothing

O
omar882 author 8/7/2008

thanks jane
i want to add user and add one record auto to this user
user Only use edit to this record

O
omar882 author 8/7/2008

i want to add user and add one record auto to this user
user Only use edit to this record

J
Jane 8/7/2008

It's very hard to understand you.

Who adds record for each user? What security settings do you use in your project?

Send a detailed description with screenshots to support@xlinesoft.com.

O
omar882 author 8/7/2008

It's very hard to understand you.

Who adds record for each user? What security settings do you use in your project?

Send a detailed description with screenshots to support@xlinesoft.com.


the admin who add to user and auto add record to this user