Connecting Tech Pros Worldwide Help | Site Map

Record source problem

  #1  
Old September 3rd, 2006, 03:45 PM
John
Guest
 
Posts: n/a
Hi



I Saved As... a form to another name and change the new forms data source.
The problem is that the new form does not show any data with the new data
source. I have tried compact & repair and decompiling but no luck.
Eventually I had to put in the form load event the command
DoCmd.RunCommand (acCmdRemoveFilterSort) to make the form show any data. Why
would the form have a filter attached to it so stubbornly?



Thanks



Regards


  #2  
Old September 3rd, 2006, 03:55 PM
Rick Brandt
Guest
 
Posts: n/a

re: Record source problem


John wrote:
Quote:
I Saved As... a form to another name and change the new forms data
source. The problem is that the new form does not show any data with
the new data source. I have tried compact & repair and decompiling
but no luck. Eventually I had to put in the form load event the
command DoCmd.RunCommand (acCmdRemoveFilterSort) to make the form show any
data. Why would the form have a filter attached to it so stubbornly?
Does the new RecordSource have all the same field names? If not you have to
change the ControlSource property of all your controls to the new field names.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #3  
Old September 3rd, 2006, 04:05 PM
John
Guest
 
Posts: n/a

re: Record source problem


After reassigning record source I reassigned fields as well so they are OK.
Also it works if I use the remove filter command either in vba or manually.

Regards


"Rick Brandt" <rickbrandt2@hotmail.comwrote in message
news:1bCKg.5131$tU.1958@newssvr21.news.prodigy.com ...
Quote:
John wrote:
Quote:
>I Saved As... a form to another name and change the new forms data
>source. The problem is that the new form does not show any data with
>the new data source. I have tried compact & repair and decompiling
>but no luck. Eventually I had to put in the form load event the
>command DoCmd.RunCommand (acCmdRemoveFilterSort) to make the form show
>any
>data. Why would the form have a filter attached to it so stubbornly?
>
Does the new RecordSource have all the same field names? If not you have
to change the ControlSource property of all your controls to the new field
names.
>
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
>

  #4  
Old September 3rd, 2006, 04:45 PM
Rick Brandt
Guest
 
Posts: n/a

re: Record source problem


John wrote:
Quote:
After reassigning record source I reassigned fields as well so they
are OK. Also it works if I use the remove filter command either in
vba or manually.
If you see records when you use "remove filter" then the reason you don't see
records is because of a filter beking applied. Most likely you have the
DataEntry property set to true.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stephen Lebans modReportToPDF CD Tom answers 30 May 7th, 2009 10:57 AM
Need Help..Set record source, controls and display data in a report using VBA Code. Peter Herath answers 1 April 23rd, 2007 11:09 PM
Bug in subform's Record Source when field added Kurt answers 1 June 29th, 2006 05:45 AM
Record Source (Multiple Tables) No Relationships ApexData@gmail.com answers 6 May 10th, 2006 04:25 AM