A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Selecting a list box item for update



 
 
Thread Tools Display Modes
  #1  
Old July 9th, 2004, 07:24 PM
Carlee
external usenet poster
 
Posts: n/a
Default Selecting a list box item for update

Hello all,

I have a list box on my main form (lstBorrowerLoans) which should the books a borrower has on loan, due date, return date etc.

In some cases, a borrower may haver several books out due at differeng days.

I have another form called frmCheckIn which allows me to update the fields in the list box.

Problem:

The frmCheckIn only updates the first item in the list of items shown in the list box. How can i double click on say the second or fourth borrowed item in the list box and modify its value using frmCheckin?

Many thanks in advance
--
Carlee
  #2  
Old July 12th, 2004, 05:24 PM
external usenet poster
 
Posts: n/a
Default Selecting a list box item for update

Hi Carlee,
It sounds as if the field being used to link the list
box item is not unique to the record, and, therefore, the
process is selecting the first instance of the field it
finds. E.g.: Jones has BookA and Jones has BookB. If the
borrower name is the link, then the process searches until
it finds the first instance of Jones and offers that up
for update.
If there is another field in the record that is unique
to each borrowed book record (e.g. transaction ID,
autonumber, etc.), add that to the list and use it as the
selection key.
If there is no such field, then you might have to try
concatenating two fields from each record to fabricate
a "unique" field for the record that could be used as the
link (e.g.: borrower&title would create JonesBookA and
JonesBookB).

Hope this helps.

-----Original Message-----
Hello all,

I have a list box on my main form (lstBorrowerLoans)

which should the books a borrower has on loan, due date,
return date etc.

In some cases, a borrower may haver several books out due

at differeng days.

I have another form called frmCheckIn which allows me to

update the fields in the list box.

Problem:

The frmCheckIn only updates the first item in the list of

items shown in the list box. How can i double click on
say the second or fourth borrowed item in the list box and
modify its value using frmCheckin?

Many thanks in advance
--
Carlee
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting value from second list when date is within date range on first list Steven Reid Worksheet Functions 5 June 17th, 2004 12:29 AM
List Box Size Orf Bartrop New Users 12 May 29th, 2004 02:10 AM
Prevent selecting all recipients in global address list gugf Contacts 0 May 25th, 2004 01:56 PM
Multiple List function George Worksheet Functions 8 February 15th, 2004 10:13 AM
adding a price to an item in a drop-down list Nat Worksheet Functions 1 October 27th, 2003 03:12 AM


All times are GMT +1. The time now is 06:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.