Connecting Tech Pros Worldwide Help | Site Map

Record source problem

 
LinkBack Thread Tools Search this Thread
  #1  
Old September 3rd, 2006, 02:45 PM
John
Guest
 
Posts: n/a
Default Record source problem

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, 02:55 PM
Rick Brandt
Guest
 
Posts: n/a
Default 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, 03:05 PM
John
Guest
 
Posts: n/a
Default 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, 03:45 PM
Rick Brandt
Guest
 
Posts: n/a
Default 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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

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 220,840 network members.