dbTalk Databases Forums  

after I run form query is empty

comp.databases.ms-access comp.databases.ms-access


Discuss after I run form query is empty in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Co
 
Posts: n/a

Default after I run form query is empty - 03-28-2010 , 12:18 PM






Hi All,

I have a query that will show my budget for the current year.
When I open the query in a form it shows me all the figures but when I
try to open
the query again it is empty.
How does that happen?

Regards
Marco

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: after I run form query is empty - 03-28-2010 , 12:28 PM






Co wrote:

Quote:
Hi All,

I have a query that will show my budget for the current year.
When I open the query in a form it shows me all the figures but when I
try to open
the query again it is empty.
How does that happen?

Regards
Marco
You could try
msgbox me.filter & vbNewLine & me.filteron
if a form's filter is affecting the records displayed.

That would display the form's filter and if it is on or not. Perhaps
your filter is getting changed.

Reply With Quote
  #3  
Old   
Co
 
Posts: n/a

Default Re: after I run form query is empty - 03-28-2010 , 12:33 PM



On 28 mrt, 19:28, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:
Quote:
Co wrote:
Hi All,

I have a query that will show my budget for the current year.
When I open the query in a form it shows me all the figures but when I
try to open
the query again it is empty.
How does that happen?

Regards
Marco

You could try
* * * * msgbox me.filter & vbNewLine & me.filteron
if a form's filter is affecting the records displayed.

That would display the form's filter and if it is on or not. *Perhaps
your filter is getting changed.
Well it actually changes the whole query.
When I try to run the query without the form after having opened it
once
all the fields have gone.

Marco

Reply With Quote
  #4  
Old   
Salad
 
Posts: n/a

Default Re: after I run form query is empty - 03-28-2010 , 02:11 PM



Co wrote:
Quote:
On 28 mrt, 19:28, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:

Co wrote:

Hi All,

I have a query that will show my budget for the current year.
When I open the query in a form it shows me all the figures but when I
try to open
the query again it is empty.
How does that happen?

Regards
Marco

You could try
msgbox me.filter & vbNewLine & me.filteron
if a form's filter is affecting the records displayed.

That would display the form's filter and if it is on or not. Perhaps
your filter is getting changed.


Well it actually changes the whole query.
When I try to run the query without the form after having opened it
once
all the fields have gone.

Marco
Very strange. Same query?

Do you have some inner joins that could make a difference? A "table" in
the query that is actually another query that may have some filter in
it...like a reference to a form variable?

What happens if you close the database, open it, and run the query a
couple of times. Is it always product blank rows?

What happens if you save the query to a temp one, open the temp in
design mode, and start deleting tables one by one and running the query?
Maybe set the relationships to right joins off the main table.

I wish I could offer further advice but I don't know what else to offer.

Reply With Quote
  #5  
Old   
Andrew G
 
Posts: n/a

Default Re: after I run form query is empty - 03-29-2010 , 07:00 AM



On Mar 28, 3:11*pm, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:
Quote:
Co wrote:
On 28 mrt, 19:28, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:

Co wrote:

Hi All,

I have a query that will show my budget for the current year.
When I open the query in a form it shows me all the figures but when I
try to open
the query again it is empty.
How does that happen?

Regards
Marco

You could try
* * * *msgbox me.filter & vbNewLine & me.filteron
if a form's filter is affecting the records displayed.

That would display the form's filter and if it is on or not. *Perhaps
your filter is getting changed.

Well it actually changes the whole query.
When I try to run the query without the form after having opened it
once
all the fields have gone.

Marco

Very strange. *Same query?

Do you have some inner joins that could make a difference? *A "table" in
the query that is actually another query that may have some filter in
it...like a reference to a form variable?

What happens if you close the database, open it, and run the query a
couple of times. *Is it always product blank rows?

What happens if you save the query to a temp one, open the temp in
design mode, and start deleting tables one by one and running the query?
* * *Maybe set the relationships to right joins off the main table.

I wish I could offer further advice but I don't know what else to offer.-Hide quoted text -

- Show quoted text -
Hi,

Have you checked Name AutoCorrect under Tools/ Options/ General?

Deselect 'Track name AutoCorrect info', fix your query and see if it
fixes your problem.

Andrew

Reply With Quote
  #6  
Old   
Co
 
Posts: n/a

Default Re: after I run form query is empty - 03-30-2010 , 12:48 AM



On 29 mrt, 14:00, Andrew G <weit... (AT) gru (DOT) com> wrote:
Quote:
On Mar 28, 3:11*pm, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:





Co wrote:
On 28 mrt, 19:28, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:

Co wrote:

Hi All,

I have a query that will show my budget for the current year.
When I open the query in a form it shows me all the figures but whenI
try to open
the query again it is empty.
How does that happen?

Regards
Marco

You could try
* * * *msgbox me.filter & vbNewLine & me.filteron
if a form's filter is affecting the records displayed.

That would display the form's filter and if it is on or not. *Perhaps
your filter is getting changed.

Well it actually changes the whole query.
When I try to run the query without the form after having opened it
once
all the fields have gone.

Marco

Very strange. *Same query?

Do you have some inner joins that could make a difference? *A "table"in
the query that is actually another query that may have some filter in
it...like a reference to a form variable?

What happens if you close the database, open it, and run the query a
couple of times. *Is it always product blank rows?

What happens if you save the query to a temp one, open the temp in
design mode, and start deleting tables one by one and running the query?
* * *Maybe set the relationships to right joins off the main table.

I wish I could offer further advice but I don't know what else to offer..- Hide quoted text -

- Show quoted text -

Hi,

Have you checked Name AutoCorrect under Tools/ Options/ General?

Deselect 'Track name AutoCorrect info', fix your query and see if it
fixes your problem.

Andrew- Tekst uit oorspronkelijk bericht niet weergeven -

- Tekst uit oorspronkelijk bericht weergeven -
Andrew,

That seems to work. What does that function do.
Why does it remove my query when I run it in a form?

Marco

Reply With Quote
  #7  
Old   
Andrew G
 
Posts: n/a

Default Re: after I run form query is empty - 03-30-2010 , 02:04 PM



On Mar 30, 1:48*am, Co <vonclausow... (AT) gmail (DOT) com> wrote:
Quote:
On 29 mrt, 14:00, Andrew G <weit... (AT) gru (DOT) com> wrote:





On Mar 28, 3:11*pm, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:

Co wrote:
On 28 mrt, 19:28, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:

Co wrote:

Hi All,

I have a query that will show my budget for the current year.
When I open the query in a form it shows me all the figures but when I
try to open
the query again it is empty.
How does that happen?

Regards
Marco

You could try
* * * *msgbox me.filter & vbNewLine & me.filteron
if a form's filter is affecting the records displayed.

That would display the form's filter and if it is on or not. *Perhaps
your filter is getting changed.

Well it actually changes the whole query.
When I try to run the query without the form after having opened it
once
all the fields have gone.

Marco

Very strange. *Same query?

Do you have some inner joins that could make a difference? *A "table" in
the query that is actually another query that may have some filter in
it...like a reference to a form variable?

What happens if you close the database, open it, and run the query a
couple of times. *Is it always product blank rows?

What happens if you save the query to a temp one, open the temp in
design mode, and start deleting tables one by one and running the query?
* * *Maybe set the relationships to right joins off the main table.

I wish I could offer further advice but I don't know what else to offer.- Hide quoted text -

- Show quoted text -

Hi,

Have you checked Name AutoCorrect under Tools/ Options/ General?

Deselect 'Track name AutoCorrect info', fix your query and see if it
fixes your problem.

Andrew- Tekst uit oorspronkelijk bericht niet weergeven -

- Tekst uit oorspronkelijk bericht weergeven -

Andrew,

That seems to work. What does that function do.
Why does it remove my query when I run it in a form?

Marco- Hide quoted text -

- Show quoted text -
Marco,

Name Autocorrect is a 'feature' to help a developer track object names
and name changes. I can't answer why it changes your query. I had the
same experience with one of my databases.

Some very reliable Access folks (i.e. Alan Browne) suggest disabling
it routinely. See: http://allenbrowne.com/bug-03.html

Andrew

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.