Connecting Tech Pros Worldwide Help | Site Map

Record source problem

John
Guest
 
Posts: n/a
#1: Sep 3 '06
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


Rick Brandt
Guest
 
Posts: n/a
#2: Sep 3 '06

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


John
Guest
 
Posts: n/a
#3: Sep 3 '06

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
>

Rick Brandt
Guest
 
Posts: n/a
#4: Sep 3 '06

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