Need help with relationships/auto-populating fields in form

cksol

New member
Local time
Today, 06:52
Joined
Jan 10, 2014
Messages
6
Hello,

I am trying to get two different fields to autopopulate when I select a choice from a combo-box on my form.

I have a form called IncomeRcvdFrom, which takes its fields from the table "IncomeRcvd"

In the form, I have three fields that need to relate to each other and auto populate.

The first field is called "IncmType", which comes from a different table called "CategoriesList". There is another field called "IncmDescr" which also comes from the same table. The third field, called "Category" is a list box in that table that comes from another table called "CatType".

All three of these fields also are list boxes in the table "IncomeRcvd", where the source of these fields come from the "CategoriesList" and the "CatType" tables.

What I am trying to accomplish is so when someone selects an Account, or "IncmType", it auto populates the "IncmDescr" field, as well as the "CatType" field on the form.

So far, I have gotten the Account or IncmType and the IncmDescr fields to autopopulate each other, but the Category field either says "Name?", or I get the "type mismatch expression" error message. I also accidentally got the field to work one time, but it would only display the ID Key field and not the actual wording in the rows (i.e. Misc. Payment, Royalty, Rebilling, etc.)

I have checked my relationships, my control sources, and still can't get it to work.:banghead:

I have attached the database I have been working on so far for your advice and comments. Any help is appreciated. Thank you!
 

Attachments

hi,

please change two as follow:
1) changing data type of category field of IncomeRcvd table from number to text
2) deleting the row source's relationship(CatType-IncomeRcvd) of Category control of IncomeRcvdForm
 
hi,

please change two as follow:
1) changing data type of category field of IncomeRcvd table from number to text
2) deleting the row source's relationship(CatType-IncomeRcvd) of Category control of IncomeRcvdForm

Hi @kyo, in the relationships table, which relationship are you talking about deleting? (Please see attached picture) I am not too experienced in Access, so any guidance will help. Thank you!

@bob_fitz how do I save it in a *.*.mdb format?
 

Attachments

  • Relationships.JPG
    Relationships.JPG
    71.7 KB · Views: 176
hi,
please find attached.
 

Attachments

  • Relationship1.png
    Relationship1.png
    30.1 KB · Views: 191
  • Relationship2.jpg
    Relationship2.jpg
    52.8 KB · Views: 178
@kyo!!!!:):):):)


Thank you very much for your help!!!! Everything works now.

Thank you too @bob_fitz for your assistance.
 

Users who are viewing this thread

Back
Top Bottom