Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 26th, 2004, 10:09 AM
gazember gazember is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 11 gazember User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
subform problem!

Hi there!

I have the following problem and no matter how hard I try I just can’t figure out whats the problem! Maybe you could help me in this matter! If you know the solution please help!

I have a database with two tables. One is registering the customers. The other their orders. Of course the tables are linked (customer ID). I made a form of the customer table. The customer form also has a subform in which are listed the details of their orders (date of the order, ordered amount, order ID, and the paid amount). When there are no records registered in the orders table (orders subform) the customer form and the order subform looks ok. But as soon as I set an order in the order table and I try to run the customer form the program shows me the following error message: „This expression is typed incorrectly, or it is too complex to be evaluated. For example a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables.” Now what the heck is that?? Í just dont get it. I have just 2-3 customers and 5-6 orders. Why is access doing this??? What seems to be the problem??
Thanx a lot!!

Reply With Quote
  #2  
Old January 26th, 2004, 10:36 AM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
Can you post a sample of your DB?

S-

Reply With Quote
  #3  
Old January 27th, 2004, 01:08 AM
gazember gazember is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 11 gazember User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how to post it?

yes I could post it but I really dont know how should I do it!..
please explain!
thanx

Reply With Quote
  #4  
Old January 27th, 2004, 02:11 AM
gazember gazember is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 11 gazember User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok! I found out how to post! (I told you I was a newebee)

You have it here! Please try to help if you can!

Anyway thanx a lot beeing helpfull!!
Attached Files
File Type: zip proba1.zip (73.1 KB, 159 views)

Reply With Quote
  #5  
Old January 27th, 2004, 10:23 AM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
Okay here are two things that I did and it appears to be working

I removed the formating from your autonumber primary key (may not be necessary, but it is working)

Changed the "Vevok_sorszam" in table "Megrendelok" to a datatype of numeric. To do this you will need to remove the realationship and then make the change and then recreate the relationship. By word of advice, if you care about the integrity of your data, "enforce referential intergrity" and probably do "cascade updates"



Let me know if you have any other problems

S-

Reply With Quote
  #6  
Old January 28th, 2004, 02:12 AM
gazember gazember is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 11 gazember User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up thanx, thanx, thanx :)

Thanx a lot sbaxter!!!!!!

The solution you told me is definetelly working!

Thanx a lot again!

Please help on my other question!

My question was:
"I try to make the Customer ID (which is also the primary key and it is set to autonumber) to look like this 0001, 0002, 003,.. 0009, 0010,0011… 0100, 0101.. and so on.
On the format of the Customer ID I wrote this:”>> 0000” (without quotations)
My problem is that this autonumber should work this way: 0008, 0009, 0010, 0011.
But this way unfortunatelly it works this way: 0008, 0009, 00010, 00011. I hope you understand my problems. What’s wrong??"

Your answer was:

"I would keep it as auto number and just reformat the number when displaying it with the following code

Format([auto],"0000")"

Where I have to write this code becos I dont know???
Where should I paste this format command?

Thanx a lot!!!!

Reply With Quote
  #7  
Old January 28th, 2004, 05:05 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
I'm having a hard time answering your question becuase I simply don't know. I rarely use bound forms. So I usually reformat text prior to putting it into the textbox with the use a VBA code with UnBound forms.

Send a Private message to TBÁrpi he should be able to help you.

S-

Reply With Quote
  #8  
Old January 29th, 2004, 01:04 AM
gazember gazember is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 11 gazember User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanx

Thanx a lot Sbaxter for beeing so helpful! Thanx a lot! I'll write to Árpi! Thanx

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > subform problem!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway