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:
  #16  
Old May 16th, 2008, 09:08 AM
Toyman Toyman is online now
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 951 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 h 18 m 34 sec
Reputation Power: 258
Quote:
Originally Posted by Database_N00b
Right i think this problem is being over-analysed lol.

Im in my database
I click Add_Student form
The form opens
the details of a student are already in the boxes

How do i set it so that when i open the form the boxes are clear.


If all you want is a form that opens to add new records only, then go to the property setting form the form. In the line where it says, "data entry", change that to "yes". This will set you form to data entry only.

Also, we "over-analysis" because we don't have your database in front of us and it is very hard trying to help without knowing exactly what you are doing and how your db is set up. It is like pinning a tail on a donkey while blind folded. There are many ways of doing what you are trying to do, and your responses really throw us off

Last edited by Toyman : May 16th, 2008 at 09:17 AM.

Reply With Quote
  #17  
Old May 16th, 2008, 09:31 AM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Quote:
Originally Posted by Toyman
If all you want is a form that opens to add new records only, then go to the property setting form the form. In the line where it says, "data entry", change that to "yes". This will set you form to data entry only.

Also, we "over-analysis" because we don't have your database in front of us and it is very hard trying to help without knowing exactly what you are doing and how your db is set up. It is like pinning a tail on a donkey while blind folded. There are many ways of doing what you are trying to do, and your responses really throw us off


Thanx

Reply With Quote
  #18  
Old May 16th, 2008, 10:36 AM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Yet again i have a new problem. I have just created an option group for my add student form and when i try to set the values it says it is invalid. The data type is set to text so im not sure why it is limiting me to numbers. Any ideas?

Reply With Quote
  #19  
Old May 16th, 2008, 10:59 AM
Toyman Toyman is online now
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 951 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 h 18 m 34 sec
Reputation Power: 258
Quote:
Originally Posted by Database_N00b
Yet again i have a new problem. I have just created an option group for my add student form and when i try to set the values it says it is invalid. The data type is set to text so im not sure why it is limiting me to numbers. Any ideas?

Option group only assigns numeric values. You could then use this value to convert the numeric values to text using code.

Reply With Quote
  #20  
Old May 16th, 2008, 11:39 AM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Quote:
Originally Posted by Toyman
Option group only assigns numeric values. You could then use this value to convert the numeric values to text using code.


Thanks for the quick reply, how do i do that?

Reply With Quote
  #21  
Old May 16th, 2008, 12:00 PM
Toyman Toyman is online now
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 951 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 h 18 m 34 sec
Reputation Power: 258
Quote:
Originally Posted by Database_N00b
Thanks for the quick reply, how do i do that?

You could unbound the option group and put this code in the after update event for the option group:

Select Case YourOpGrpName

Case 1
Me.YourDestinationField = "YourDesiredReturn1"
Case 2
Me.YourDestinationField = "YourDesiredReturn2"

End Select

See Access help topic for "Case" for further info. The number after the word "case" is the return value for your option group.

Reply With Quote
  #22  
Old May 16th, 2008, 12:16 PM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Works a treat thanks a lot, will probably have some other problem soon haha

Reply With Quote
  #23  
Old May 16th, 2008, 12:28 PM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Who would of thought it would of been so soon......

2 Problems really.

1 - I have a data entry form and have a combo box. When i select an option in the box it is not displaying in the table after i add the record. Any ideas?

2nd - I have 2 fields which are being used for ID purposes which i do not want to be able to change after they have been inputted into the database nor do i want them to be rplicated i.e. a user entering the same ID twice. How can i do this?

Before you answer i just want to say i really appreciate all this and this forum is really helpful and quick to reply. Thanks again guys, you have no idea how much you are helping me.

Reply With Quote
  #24  
Old May 16th, 2008, 01:50 PM
Toyman Toyman is online now
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 951 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 h 18 m 34 sec
Reputation Power: 258
Quote:
Originally Posted by Database_N00b
Who would of thought it would of been so soon......

2 Problems really.

1 - I have a data entry form and have a combo box. When i select an option in the box it is not displaying in the table after i add the record. Any ideas?

2nd - I have 2 fields which are being used for ID purposes which i do not want to be able to change after they have been inputted into the database nor do i want them to be rplicated i.e. a user entering the same ID twice. How can i do this?

Before you answer i just want to say i really appreciate all this and this forum is really helpful and quick to reply. Thanks again guys, you have no idea how much you are helping me.

Answer 1
I am not sure what you mean by not displaying in the table after you add the record. How are you displaying the record from the table. Are you displaying the record in another form. If you are, then in the after update event of the combo box, send a code to refresh the form in which the record is being displayed. If this is not the answer you are looking for, give more detail as to what you are trying to do.

Answer 2
To prevent duplicate records in a field, set the property for the field in the table to not allow duplicates. To prevent a user from changing the content in a field, it really depends on how the id is inputed or displayed. Most record id I use is auto generated with an auto numbering field. As such, I don't even display the id in my form. If you must display the id, then you might use a code to lock the field (Me.YourField.Locked=true)

Reply With Quote
  #25  
Old May 16th, 2008, 01:59 PM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Quote:
Originally Posted by Toyman
Answer 1
I am not sure what you mean by not displaying in the table after you add the record. How are you displaying the record from the table. Are you displaying the record in another form. If you are, then in the after update event of the combo box, send a code to refresh the form in which the record is being displayed. If this is not the answer you are looking for, give more detail as to what you are trying to do.

Answer 2
To prevent duplicate records in a field, set the property for the field in the table to not allow duplicates. To prevent a user from changing the content in a field, it really depends on how the id is inputed or displayed. Most record id I use is auto generated with an auto numbering field. As such, I don't even display the id in my form. If you must display the id, then you might use a code to lock the field (Me.YourField.Locked=true)



1 - After i add the record i go into the table its supposed to be in and it just has a blank field. Its just a form to add details into a table. Here is how it sort of works:

I am using a combo box to pull a detail from a field in a different table to add into this one. I select the detail on the drop down menu and add the record but it is not showing up in the table im adding it to. Hope this helps more

2- Where do i find the property for that field? Ifs its in table design view i cant see anything to do with duplication.

Do you perhaps have msn or something so i can explain better?

Reply With Quote
  #26  
Old May 16th, 2008, 02:08 PM
Toyman Toyman is online now
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 951 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 h 18 m 34 sec
Reputation Power: 258
Quote:
Originally Posted by Database_N00b
1 - After i add the record i go into the table its supposed to be in and it just has a blank field. Its just a form to add details into a table. Here is how it sort of works:

I am using a combo box to pull a detail from a field in a different table to add into this one. I select the detail on the drop down menu and add the record but it is not showing up in the table im adding it to. Hope this helps more

2- Where do i find the property for that field? Ifs its in table design view i cant see anything to do with duplication.

Do you perhaps have msn or something so i can explain better?


Answer1
I am assuming the combo box is bound to the field in the table. When you input data into a field, Access does not update the table until after you have navagate away from the field. This can be done by tabbing to another field or closing the form. You could also add a code to the after update event for the combo to refresh the form (Me.Refresh). I believe this will cause the data to update to the table.

Answer 2
In design view of the table, look for the row that states, "indexed". Choose, "Yes (No Duplicates)"

Reply With Quote
  #27  
Old May 16th, 2008, 02:13 PM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Quote:
Originally Posted by Toyman
Answer1
I am assuming the combo box is bound to the field in the table. When you input data into a field, Access does not update the table until after you have navagate away from the field. This can be done by tabbing to another field or closing the form. You could also add a code to the after update event for the combo to refresh the form (Me.Refresh). I believe this will cause the data to update to the table.

Answer 2
In design view of the table, look for the row that states, "indexed". Choose, "Yes (No Duplicates)"


Answer 1 - Solved

Answer 2 - Solved



Cheers once again, cya in 10 mins haha

Reply With Quote
  #28  
Old May 16th, 2008, 03:48 PM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
For the duplicate data function when i create the record using duplicate data access gives me an error message, how do i create my own error message so that if a user enters duplicate data an error comes up asking to change the ID?

Reply With Quote
  #29  
Old May 16th, 2008, 05:05 PM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
For the duplicate data function when i create the record using duplicate data access gives me an error message, how do i create my own error message so that if a user enters duplicate data an error comes up asking to change the ID?



--------------------------------------------
Just to add something else to my post.

Its hard to explain this problem but here goes

I have a table called lesson details and it has Lesson_Cost and Lesson_Type

I book lessons into a table called Lessons
When i selct the type of lesson in the combo box i want the lesson cost field for the Lessons table to put in the cost of the lesson.

I have a screenshot here to illustrate what i mean.

http://i68.photobucket.com/albums/i4/Studders1/help.jpg

Cheers

Reply With Quote
  #30  
Old May 16th, 2008, 08:22 PM
Toyman Toyman is online now
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 951 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 h 18 m 34 sec
Reputation Power: 258
Quote:
Originally Posted by Database_N00b
For the duplicate data function when i create the record using duplicate data access gives me an error message, how do i create my own error message so that if a user enters duplicate data an error comes up asking to change the ID?


--------------------------------------------
Just to add something else to my post.

Its hard to explain this problem but here goes

I have a table called lesson details and it has Lesson_Cost and Lesson_Type

I book lessons into a table called Lessons
When i selct the type of lesson in the combo box i want the lesson cost field for the Lessons table to put in the cost of the lesson.

I have a screenshot here to illustrate what i mean.

http://i68.photobucket.com/albums/i4/Studders1/help.jpg

Cheers


You should really start a new thread for each of your new questions as others might not know this is a new question.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Data Type


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





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
Stay green...Green IT