A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Fill in form using query



 
 
Thread Tools Display Modes
  #1  
Old November 6th, 2009, 09:27 AM posted to microsoft.public.access.forms
Smoki
external usenet poster
 
Posts: 54
Default Fill in form using query

Hi,
I have form based on query. I want to choose value in one field on form, and
then the other fields on form to fill with appropriate values (one row from
table). I made query, I tried it, and it works.
But when I choose one value in that field, and then press command button to
refresh form, nothing happend - the other fields on form don't fill?! Why???
Maybe my problem is not in query - it works, probably with my form?! But,
how to fix it?

Thanks,
Smoki
  #2  
Old November 6th, 2009, 11:39 AM posted to microsoft.public.access.forms
anlu
external usenet poster
 
Posts: 9
Default Fill in form using query

Hi Smoki,

What does your query look like? And your code behind the command button.
Maybe you simply need to call the Requery method on the form?

Regards,
anlu

"Smoki" wrote:

Hi,
I have form based on query. I want to choose value in one field on form, and
then the other fields on form to fill with appropriate values (one row from
table). I made query, I tried it, and it works.
But when I choose one value in that field, and then press command button to
refresh form, nothing happend - the other fields on form don't fill?! Why???
Maybe my problem is not in query - it works, probably with my form?! But,
how to fix it?

Thanks,
Smoki

  #3  
Old November 6th, 2009, 11:52 AM posted to microsoft.public.access.forms
Smoki
external usenet poster
 
Posts: 54
Default Fill in form using query

Yes, the problem was really with my command button. I used CB Refresh form
data, and then I put new one CB Apply form filter, put some filter in a form,
and it works now. Thanks

Smoki

"anlu" wrote:

Hi Smoki,

What does your query look like? And your code behind the command button.
Maybe you simply need to call the Requery method on the form?

Regards,
anlu

"Smoki" wrote:

Hi,
I have form based on query. I want to choose value in one field on form, and
then the other fields on form to fill with appropriate values (one row from
table). I made query, I tried it, and it works.
But when I choose one value in that field, and then press command button to
refresh form, nothing happend - the other fields on form don't fill?! Why???
Maybe my problem is not in query - it works, probably with my form?! But,
how to fix it?

Thanks,
Smoki

 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.