Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 10th, 2006, 03:15 PM
impecunious@hotmail.com
Guest
 
Posts: n/a
Default Losing subform current record after delete

I've got a tab control that drives several things, and I'm running into
a problem.

The user searches for a particular patient using unbound controls, and
a patient subform displays the associated results. When the user
selects the patient they want in the sub form datasheet, this selection
drives the results shown in the other two main tabs of the form, like
patient details and transactions. The problem is, whenever the user
deletes a particular transaction in another tab, I lose the primary key
of the patient they previously selected at startup. Instead, the user
sees the transactions of the first patient in the underlying table.

For my transactions sub form, for example, I make this association as
such:
Me.subfrm_transaction_transactions.Form.Filter = "PATIENT_ID = " &
Me.FRM_SUB_PATIENT.Form!PATIENT_ID

I've created a variable to capture this patient ID, and this remedies
part of the problem, but I'm really hoping there's a more elegant way
to preserve the selected patient in the subform, regardless of any
actions the user makes elsewhere in the main tabs.

Thanks!

  #2  
Old August 10th, 2006, 09:35 PM
Impecunious
Guest
 
Posts: n/a
Default Re: Losing subform current record after delete

Any thoughts, folks?

 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles