T
Tom Brown
I have a database that keeps track of credit applications. I am trying to
setup a 2 forms to pull up existing apps and edit them. The application
data
table is linked to an SQL Server 2000 table. I have 2 forms, one tied to
a macro which allows me to find the app I want to edit using several
criteria and sends the
details of the app I select to a temp table, then opens the edit form, which
is showing
only the app I want to edit. This works fine. However, when I make the
edits on
the edit form and press the save button, the query runs, tells me I am
updating 1 row,
then gives me the locking message asking me if I want to continue. When I
say Yes,
the query finishes but the edit does not go thru. I think the issue is with
the SQL
table. How can I get around this locking issue? Sample code below.
UPDATE tbl_ID INNER JOIN tblCreditApplicationInput ON (tbl_ID.Outlet =
tblCreditApplicationInput.[Outlet #]) AND (tbl_ID.[Date Rcvd] =
tblCreditApplicationInput.[Date Rcvd]) SET tblCreditApplicationInput.[Date
Rcvd] = tbl_Id.[Date Rcvd], tblCreditApplicationInput.[Date Completed] =
tbl_Id.[Date Completed], tblCreditApplicationInput.Status = tbl_ID.Status,
tblCreditApplicationInput.[Outlet #] = tbl_Id.Outlet,
tblCreditApplicationInput.[Existing Outlet #] = tbl_Id.[Existing Outlet],
tblCreditApplicationInput.[Type of Request] = tbl_ID.[Type Of Request],
tblCreditApplicationInput.[Corporate Name] = tbl_ID.[Corporate Name]
Thanks in advance for your help.
Tom
setup a 2 forms to pull up existing apps and edit them. The application
data
table is linked to an SQL Server 2000 table. I have 2 forms, one tied to
a macro which allows me to find the app I want to edit using several
criteria and sends the
details of the app I select to a temp table, then opens the edit form, which
is showing
only the app I want to edit. This works fine. However, when I make the
edits on
the edit form and press the save button, the query runs, tells me I am
updating 1 row,
then gives me the locking message asking me if I want to continue. When I
say Yes,
the query finishes but the edit does not go thru. I think the issue is with
the SQL
table. How can I get around this locking issue? Sample code below.
UPDATE tbl_ID INNER JOIN tblCreditApplicationInput ON (tbl_ID.Outlet =
tblCreditApplicationInput.[Outlet #]) AND (tbl_ID.[Date Rcvd] =
tblCreditApplicationInput.[Date Rcvd]) SET tblCreditApplicationInput.[Date
Rcvd] = tbl_Id.[Date Rcvd], tblCreditApplicationInput.[Date Completed] =
tbl_Id.[Date Completed], tblCreditApplicationInput.Status = tbl_ID.Status,
tblCreditApplicationInput.[Outlet #] = tbl_Id.Outlet,
tblCreditApplicationInput.[Existing Outlet #] = tbl_Id.[Existing Outlet],
tblCreditApplicationInput.[Type of Request] = tbl_ID.[Type Of Request],
tblCreditApplicationInput.[Corporate Name] = tbl_ID.[Corporate Name]
Thanks in advance for your help.
Tom