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  

ACCESS 2003 -- form and subform HELP........



 
 
Thread Tools Display Modes
  #1  
Old December 16th, 2006, 06:18 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 20
Default ACCESS 2003 -- form and subform HELP........

I've a form in Datasheet view which have 5 fields ... Last name,
firstname, city, zipcode, phone. When the user double click on the
phone number field it will call another form which run from the query
(The query is contrain by the phone value from the main form --
[forms]![mainform]![phone]).

It's working great in Access 2000 and Access 2003. When i try to run
it on Access 2003 in XP at work. Everytime, i double click the phone
from the main form, a window popup and ask me to enter the phone
number.


Can someone help me how to correct the problem in ACCESS 2003. Thank
you in advance and hope to hear from you soon.

  #2  
Old December 16th, 2006, 06:20 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 20
Default ACCESS 2003 -- form and subform HELP........


sorry i means it's working fine on ACCESS 97, 2000, 2002 but the same
code not work in ACCESS 2003

  #3  
Old December 16th, 2006, 06:41 PM posted to microsoft.public.access.forms
Daniel
external usenet poster
 
Posts: 1,017
Default ACCESS 2003 -- form and subform HELP........

1- I wouldn't suggest posting the same question 5 times as you have done.
This is very impolite and will turn people off from answering your questions
at all.

2- please post the code that you are using on the doubleclick event so we
can troubleshoot it.

Daniel




" wrote:

I've a form in Datasheet view which have 5 fields ... Last name,
firstname, city, zipcode, phone. When the user double click on the
phone number field it will call another form which run from the query
(The query is contrain by the phone value from the main form --
[forms]![mainform]![phone]).

It's working great in Access 2000 and Access 2003. When i try to run
it on Access 2003 in XP at work. Everytime, i double click the phone
from the main form, a window popup and ask me to enter the phone
number.


Can someone help me how to correct the problem in ACCESS 2003. Thank
you in advance and hope to hear from you soon.


  #4  
Old December 16th, 2006, 06:42 PM posted to microsoft.public.access.forms
Daniel
external usenet poster
 
Posts: 1,017
Default ACCESS 2003 -- form and subform HELP........

Actually, you might as well post the SQL statement for the query as well to
give us the full picture of what is going on.



" wrote:

I've a form in Datasheet view which have 5 fields ... Last name,
firstname, city, zipcode, phone. When the user double click on the
phone number field it will call another form which run from the query
(The query is contrain by the phone value from the main form --
[forms]![mainform]![phone]).

It's working great in Access 2000 and Access 2003. When i try to run
it on Access 2003 in XP at work. Everytime, i double click the phone
from the main form, a window popup and ask me to enter the phone
number.


Can someone help me how to correct the problem in ACCESS 2003. Thank
you in advance and hope to hear from you soon.


  #5  
Old December 16th, 2006, 06:46 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 20
Default ACCESS 2003 -- form and subform HELP........


Daniel wrote:
1- I wouldn't suggest posting the same question 5 times as you have done.
This is very impolite and will turn people off from answering your questions
at all.

2- please post the code that you are using on the doubleclick event so we
can troubleshoot it.

Daniel


Didn't mean to post it 5 times. The code in the doubleclick event is
only do the open the second form which run from the query using the
value of the the main form.

DoCmd.OpenForm "form_detail"

  #6  
Old December 16th, 2006, 07:07 PM posted to microsoft.public.access.forms
Daniel
external usenet poster
 
Posts: 1,017
Default ACCESS 2003 -- form and subform HELP........

Could you post the SQL for the query. Is there any code being run as the
form is opened (Load or Open Events or something else we should be aware of)?

Daniel



" wrote:


Daniel wrote:
1- I wouldn't suggest posting the same question 5 times as you have done.
This is very impolite and will turn people off from answering your questions
at all.

2- please post the code that you are using on the doubleclick event so we
can troubleshoot it.

Daniel


Didn't mean to post it 5 times. The code in the doubleclick event is
only do the open the second form which run from the query using the
value of the the main form.

DoCmd.OpenForm "form_detail"


  #7  
Old December 17th, 2006, 12:26 AM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 20
Default ACCESS 2003 -- form and subform HELP........

Here is the query to run the sub form

SELECT Student_financial_year.last, Student_financial_year.first,
Student_financial_year.address, Student_financial_year.state,
Student_financial_year.phone
FROM Student_financial_year
WHERE (Student_financial_year.phone)=[forms]![mainform]![phone]);

It's working great in the ACCESS 2000 and ACCESS 2002. But when i'm
trying to run the same code in ACCESS 2003 in XP op. It's popup a
winder to ask the value of [forms]![mainform]![phone everytime i double
click on one of the student on the list from the main form. that's
when the subform get call to give me more detail and run the query
above.

Thanks for your help.

  #8  
Old December 17th, 2006, 01:33 AM posted to microsoft.public.access.forms
Daniel
external usenet poster
 
Posts: 1,017
Default ACCESS 2003 -- form and subform HELP........

I'm not an SQL expert, so perhaps someone else might have a better idea of
what is wrong but I did a fast mockup on my PC and I have a slightly modify
synthax. Give it a try, hopefully it will fix your problem.

SELECT Student_financial_year.last, Student_financial_year.first,
Student_financial_year.address, Student_financial_year.state,
Student_financial_year.phone
FROM Student_financial_year
WHERE (((Student_financial_year.phone)=[forms]![mainform]![phone]));

Daniel






" wrote:

Here is the query to run the sub form

SELECT Student_financial_year.last, Student_financial_year.first,
Student_financial_year.address, Student_financial_year.state,
Student_financial_year.phone
FROM Student_financial_year
WHERE (Student_financial_year.phone)=[forms]![mainform]![phone]);

It's working great in the ACCESS 2000 and ACCESS 2002. But when i'm
trying to run the same code in ACCESS 2003 in XP op. It's popup a
winder to ask the value of [forms]![mainform]![phone everytime i double
click on one of the student on the list from the main form. that's
when the subform get call to give me more detail and run the query
above.

Thanks for your help.


  #9  
Old December 17th, 2006, 02:12 AM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 20
Default ACCESS 2003 -- form and subform HELP........


Daniel wrote:
I'm not an SQL expert, so perhaps someone else might have a better idea of
what is wrong but I did a fast mockup on my PC and I have a slightly modify
synthax. Give it a try, hopefully it will fix your problem.

SELECT Student_financial_year.last, Student_financial_year.first,
Student_financial_year.address, Student_financial_year.state,
Student_financial_year.phone
FROM Student_financial_year
WHERE (((Student_financial_year.phone)=[forms]![mainform]![phone]));

Daniel



Appreciate for your helps but i don't think it was an syntax error. As
i mention the same code is working fine when i run the application in
ACCESS 2000 or ACCESS 2002. It's only popup and asking me to input
value when i run it in ACCESS 2003. It's the same application. Thanks
for trying.

 




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 12:31 AM.


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