Hello,
I have a quick question (I hope). I have a form with a combo box and
a multi-selection list box. The list box is based on a query. Users
can select values from the cmbobox to add to the list box (items they
wish inserted into the table), or they can select items in the list
box to delete (from the table). Once they have finished making any
changes, they are to click a SAVE button to actually commit the
changes to the database. This "delayed save" piece is causing me some
headache.
The problem is that having the listbox's source be Query means that a
user cannot see the changes (s)he is making appear in the list box as
I want. The changes don't show up until save is hit. Although I can
think of a way to perhaps solved this problem, I would prefer to use
one of the two methods below if possible (depending on the answers to
the quesions within them. Your help on these questions would be
GREATly appreciated!
Scenario One (Preferred): Make the updates immediately, but use a
transaction. The problem with this is that I cannot figure out how to
make the changes show up BEFORE I commit them. QUESTION 1: Does
anyone know how to make the data within a transaction the source of a
listbox?
Scenario Two: Make the list box's row source a value list. I would
then populate this list of values by running the query used as the
rowsource in Scenario One and making a string out of it during the
oncurrent event. I could then set this string to be the rowsource of
the list box, and in this way I can easily add or subtract values from
the list. After the user is done adding or subtracting items, (s)he
would hit save, and I could clear all previous items and commit the
whole new list to the table using an AppendOnly Recordset and the
ADDNew method. The potential problem is that if another user is
editing the same records the two users could potentially overwright
each others changes. (If the 2nd user opens the form before the first
has finished commiting his/her changes). QUESTION 2: Given that the
form is based on two tables with a one to many relationship and only
shows one record because of a criteria in the form source query, if I
say "LOCK CURRENT RECORD" in the form options, will this prevent
another user from opening a copy of the form showing the same record?
Thanks,
Ryan Rembaum 1 3304
"Ryan" <ry************@kp.org> wrote in message
news:b5**************************@posting.google.c om Hello,
I have a quick question (I hope). I have a form with a combo box and a multi-selection list box. The list box is based on a query. Users can select values from the cmbobox to add to the list box (items they wish inserted into the table), or they can select items in the list box to delete (from the table). Once they have finished making any changes, they are to click a SAVE button to actually commit the changes to the database. This "delayed save" piece is causing me some headache.
The problem is that having the listbox's source be Query means that a user cannot see the changes (s)he is making appear in the list box as I want. The changes don't show up until save is hit. Although I can think of a way to perhaps solved this problem, I would prefer to use one of the two methods below if possible (depending on the answers to the quesions within them. Your help on these questions would be GREATly appreciated!
Scenario One (Preferred): Make the updates immediately, but use a transaction. The problem with this is that I cannot figure out how to make the changes show up BEFORE I commit them. QUESTION 1: Does anyone know how to make the data within a transaction the source of a listbox?
Scenario Two: Make the list box's row source a value list. I would then populate this list of values by running the query used as the rowsource in Scenario One and making a string out of it during the oncurrent event. I could then set this string to be the rowsource of the list box, and in this way I can easily add or subtract values from the list. After the user is done adding or subtracting items, (s)he would hit save, and I could clear all previous items and commit the whole new list to the table using an AppendOnly Recordset and the ADDNew method. The potential problem is that if another user is editing the same records the two users could potentially overwright each others changes. (If the 2nd user opens the form before the first has finished commiting his/her changes). QUESTION 2: Given that the form is based on two tables with a one to many relationship and only shows one record because of a criteria in the form source query, if I say "LOCK CURRENT RECORD" in the form options, will this prevent another user from opening a copy of the form showing the same record?
Thanks, Ryan Rembaum
Or use a temporary table ?
--
regards,
Bradley
Or u This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Joe Blow |
last post by:
Everybody hates multiposting right? Everyone knows about it, and some
people do it regardless... what i hate
is when instead of answering a question in the group... you get 3 or 4
responses of...
|
by: Lionel |
last post by:
Hi all,
I would like having more informations on how we could exchange
informations and/or objects between PERL and JAVA.
We have a Java programs that open, maintain and close telnet...
|
by: Steven Bethard |
last post by:
So when I'm writing a class and I define an __init__ method, I sometimes
haven't called object.__init__, e.g.:
class C(object):
def __init__(self, x):
self.x = x
instead of
class...
|
by: Christian Eriksson |
last post by:
Hi!
I want to clarify, for myself, some basic facts about Oracle Client
Server configuration. I start with the listener configuration on the
server side.
What block(s) in what configuration...
|
by: Jegger |
last post by:
Hello!
We have following situation;
network with 100 users, aplication developed in Access, user DB
deployed on SQL Server.
Is it better to create query inside aplication (with code) and then...
|
by: Evgeny Gopengauz |
last post by:
I created a stored procedure like this:
CREATE PROCEDURE SP
AS
BEGIN
CREATE TABLE #T( C INT )
INSERT INTO #T(C) VALUES (1)
SELECT * FROM #T
END
|
by: davidw |
last post by:
When I create a web application project, I will get one dll. I can put many
functionalities into one dll, or I can put them into several dlls, which way
is better? if I put them into one name space...
|
by: Steven Thomas |
last post by:
I have a windows service that uses office xp automation. Here is the
code
---------------------------------------
Public Sub CAccessSnapShot()
Try
Dim objAccess As New Access.Application()
Dim...
|
by: Doudou |
last post by:
Hello,
(I'm french, so my english isn't very good)
I use a dataTable to fill a listbox (listbox databinded). This listbox
has a valuemember (integer) and a displaymember (string) differents.
...
|
by: Ted Ngo |
last post by:
Hi All,
Is there an example I can use to create mutli- thread for asp.net 2.0
in c#
Here is what I want to do. I have an multiple arrylist value. Array1,
Array2, Array3, Array3.
I want to...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |