PC Review


Reply
Thread Tools Rate Thread

Selected subform record becomes unselected after code runs

 
 
M Skabialka
Guest
Posts: n/a
 
      21st May 2010
After figuring out that you can't use a Split Form in Access 2007 as a
subform, I went back to the old way of adding a datasheet view subform to my
subform. (main, subfrm, subsubfrm). If the user clicks on a record selector
on the subsubfrm datasheet, the subfrm goes to that record. However for
some reason the record highlighted in the subsubfrm datasheet is no longer
highlighted - it goes back to the first record. But if I put in a break
point and step through the code, when it is done the selected record is
still highlighted. The code is simple, nothing else happens on either form,
on current or anything...

Dim tempID As Integer
tempID = Me!ID
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Nz(tempID, 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark

Why would my subsubfrm go back to the first record if I don't step through
the code, but remain on the selected record if I do step though?

Mich


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting the value of a selected/unselected item in a checkboxlist Brett Wesoloski Microsoft C# .NET 4 13th Jun 2007 04:01 PM
Wierd subform behaviour, subform not cycling through after updating a subform record Mikal Microsoft Access Forms 2 25th May 2006 07:15 PM
Bug: unselected cells pasted after ctrl clicking then copy and pas =?Utf-8?B?QW5kcmV3IFR3ZWRkbGU=?= Microsoft Excel Crashes 0 17th Oct 2005 01:57 PM
In Access field 0.5 becomes 0 and 1.5 becomes 2 =?Utf-8?B?TWlrZSBTaGVh?= Microsoft Access 2 30th Apr 2005 04:37 PM
Service Pack 2 update to Win XP Pro runs and runs and runs....... Ali Windows XP General 1 13th Oct 2004 08:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:14 AM.