Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 30th, 2006, 04:13 AM
Friend of Wrox
 
Join Date: Dec 2005
Location: CHENNAI, TAMILNADU, India.
Posts: 233
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to anukagni Send a message via Yahoo to anukagni
Default Removing the Duplicate

Hi,

  Guy's Iam having an Database in that iam having One table named tblmain and one form named frmmain and one Report named repmain...

 This is the simple table which i have created especially for this Question...

 With the use of the table i have created an from to generate report ..

 The table having the field as Name of the Program, No. of Trainee, Organitation , Course Fee, Faculty, Year..

 From the above Iam using Name of the Program to take the report. In the field the Program name may repeat one or more time but when iam using in the report taking from the name should show only one time i.e. it wont repeat more then one time ..my question is how can i negociate the duplicate item in the combo box..

 If ur not able to under stand pls revert



Learn as you can..
------------------------
pap...
Reply With Quote
  #2 (permalink)  
Old August 30th, 2006, 10:14 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Hi,

If you only want the name to show up once in the combo box, even though it appears many times in table, in form design mode, double click the combo box and on the Properties dialog box, select the data tab. Then click the ... to the right of the query, and in query design view, right click the query and in ITS properties dialog box, select Unique Value = Yes.

This may not work if the combo box is binding on a primary key in tblmain.

If you don't want the Name of the Program to appear in each record on the report, delete the field from the detail section of the report, and add it to the report header.

HTH


mmcdonal
Reply With Quote
  #3 (permalink)  
Old August 30th, 2006, 10:21 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

A better design, however, would be to do the following:

tblProgram
ProgramID - PK
Name - text (name of program)

tblMain
ProgramID - FK
NoTrainee - etc...

Then create a combo box on tblProgram, and the values will only show up once. Then bind to the PK on tblProgram, and select all records in tblMain where ProgramID = combo box.



mmcdonal
Reply With Quote
  #4 (permalink)  
Old August 31st, 2006, 12:57 AM
Friend of Wrox
 
Join Date: Dec 2005
Location: CHENNAI, TAMILNADU, India.
Posts: 233
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to anukagni Send a message via Yahoo to anukagni
Default

Hi, Mc

 I got it>>

Learn as you can..
------------------------
pap...
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing duplicate edge elements geoGregory3 XSLT 2 February 27th, 2008 05:08 AM
Removing duplicate entries avantikad XSLT 2 January 2nd, 2008 11:29 AM
Removing duplicate Value Row milindsaraswala Excel VBA 0 November 14th, 2007 05:11 PM
Removing duplicate nodes post-process QuickSilver002 XSLT 3 April 4th, 2007 03:47 PM
Removing Duplicate Fields antonides Access 2 December 1st, 2003 06:37 PM



All times are GMT -4. The time now is 01:37 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.