473,379 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Combo Boxes for searching through forms

I would like to produce a combo box that allows searching through records in a form so that new records can easily be added to the correct 'date' or 'id' for example.

When I have a combo box that is bound to a field in a table (and on the form) an error message appears saying 'the record cannot be deleted or changed because the table 'X' includes related records.'

This error message only appears when the combo box is on the form and linked to the field.
Feb 15 '11 #1
4 1712
beacon
579 512MB
Hi Elizabeth,

I don't quite understand how you want to use the combo box, but I can explain the error message you're receiving.

The message, "the record cannot be deleted or changed because the table 'X' includes related records" means that you have setup a relationship between two tables and there are records that are related in both tables. The message implies that you are trying to delete a record that appears in the one side of a one-to-many relationship.

You can allow deletions across tables that have related records by going to Tools->Relationships, clicking on the relationship between the two tables in question, and selecting "Cascase Delete Related Records."

A word of warning though, if you choose this, as the name implies, it will delete all records that are associated with the record you are trying to delete.

So, if you have a client table (with a client ID field), an orders table (with an order ID field), and there a 50 orders associated with client ID #7, if you delete client ID #7 you will also delete all 50 of the orders associated with that client ID.

Hope this helps and good luck,
beacon
Feb 15 '11 #2
The message appears without me selecting any record (i.e. it is not possible to select a record in the subform with the combo box present due to this error message), I am not trying to do anything when it appears!

I am trying to use the combo box to make data entry easier. So, for example, if you have new information on client 349 you are able to use the combo box to get to all the information on client 349 that is stored in the sub form.

Is this possible?

Thank you for replying!
Feb 15 '11 #3
beacon
579 512MB
Do you have any code behind the form/subforms? What is the record source for the form/subforms?
Feb 15 '11 #4
Code?

The record sources are fields from tables. There is one table that is the main form with only one field with which I would like to have the combo box and search through the related records that hold all of the information stored in a different table, and shown in the subform.

Does that make sense?
Feb 16 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Daniel Hill | last post by:
OK, I have very, VERY basic background knowledge of VB6 and have now upgraded to VB.NET and now I'm struggling to bring up the forms I want. What I am looking to do is to have a click a command...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
7
by: badboybrown | last post by:
I know that this is an age old question and it has been approached a few times, but I've hit a wall and require some help. I have various combo boxes that contain values that are both "current"...
0
by: Tom | last post by:
I have some very strange issues with combo boxes on a tab control. Here's the scenario: I have a Windows Forms form that has a tab control on it, with two (2) tabs. Tab 2 happens to have a number...
4
by: Miguel | last post by:
I have an order entry database with two forms. One is for new orders the other is to update orders. The forms are identical except that one is strictly order entry. On both forms are three sets of...
2
by: LLM | last post by:
I have 2 combo boxes I want to tie together. Right now I have C1.DisplayMember = "field1" C1.DisplayValue = "field2 C2.DisplayMember = "field2" C2.DisplayValue = "field1" My thoughts were...
5
by: samdev | last post by:
I have created two combo boxes in a subform.... For example 1. Combo Box State 2. Combo Box City 3. When a state from the Combo Box State is selected, the City combo box updates to reflect...
3
by: evenlater | last post by:
Using Access 2007, I've found that combo box back colors change to transparent from normal inconsistently for no reason I can discern. Never had that problem in previous versions of Access. I do...
8
by: jerken | last post by:
Im working in Access 2007 using two Combo boxes to select a category then product type. I am trying to get a couple fields to be displayed based on what the values are in the combo boxes. I have the...
3
by: dblack64 | last post by:
I am working in Access 2007. I have a form named Master Terms List that contains 4 bound text boxes and 7 cascading combo boxes. The bound text boxes have data sources from a table named Termslist. ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.