Solved

Combobox Autofill not working.

Posted on 2013-11-25
10
268 Views
Last Modified: 2013-11-26
I have developed a Mainform with subforms. All is working except an auto-fill into a field that is not being recognized.

I have attached a zipped fill with snap shots and the database.

Can you explain where I went wrong placing commands?

You help will be greatly appreciated.

Timothy
20131125CondAssm.zip
0
Comment
Question by:TimothyA
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
10 Comments
 
LVL 15

Expert Comment

by:Simon Ball
ID: 39677550
There's loads of forms in the mdb... is it Mainform_tAsslnSpec?

which one Field is the problem?
0
 
LVL 15

Expert Comment

by:Simon Ball
ID: 39677554
OH, the info is in the PDFS?  You probably need to put the question in the Experts Exchange thread too so that when answered, it will be searchable on the EE system.
0
 

Author Comment

by:TimothyA
ID: 39677573
Sudonim,

"You probably need to put the question in the Experts Exchange thread too so that when answered, it will be searchable on the EE system."
I do not understand.  If I am not now in the "thread".  How do it get to the "thread"?

Timothy
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 15

Expert Comment

by:Simon Ball
ID: 39677581
in tbl_01_BS you have a field MS_PS_ID which is actually a text 25.

the data you are trying to link this on is a text field from combossettID which is the PS_ID from tAasset field PS_ID is 255

The data you are trying to link on cannot fit in the MS_PS_ID field...

The copy you posted has a relationship on the field so you will need to delete the relationship, amend the field value to match, then re-add the relationship.
0
 
LVL 15

Expert Comment

by:Simon Ball
ID: 39677586
ok, you have actualy put the details of your question and the problem in the PDF's in the zip.  the details of the question should be here, in text, in the EE comments, so that future users can find the problem and look at the solution.
0
 
LVL 15

Expert Comment

by:Simon Ball
ID: 39677591
the 2nd part of the problem, MS_PS_ID in tbl_06_PC has the same problem.. it is a text field with field size 25... not 255
0
 
LVL 15

Expert Comment

by:Simon Ball
ID: 39677605
and finally, as you are naming these "ID" you could do this by defining a number  for the different types, and storing that in the tables for the subforms... rather than duplicating the whole long test string description.

e.g. ID: 1, PD_Desc:Chelsea Raw Water Pump Station, etc

then store the 1 in the ID field as a number, rather the de-normalised current way recording the same text value in lots of tables.
0
 

Author Comment

by:TimothyA
ID: 39677638
Sudonium,

Thanks for continuing to work with me.

"you could do this by defining a number  for the different types,"

As I understand this, the ID number would then be in a one-to-one relationship with the "different types" both of which will be unique.  Is this preferred to having a single text field as primary key?
0
 
LVL 15

Accepted Solution

by:
Simon Ball earned 500 total points
ID: 39677825
yes thats how i'd do it.  an ID to me is a number, reprenting a description etc.

try my solution for the text fields first though and see if you get your version working....

I assume you would have to make quite a lot of changes to amend this Database based on the current fields changing into numeric ID's.
0
 

Author Closing Comment

by:TimothyA
ID: 39678707
The issue was text field size.  Thanks.

I am considering the norm of making the primary key autonumber.  You are correct about the work.

It is likely this database structure will be used as a template in the future.  Therefore, it seems wise to proceed with the upgrade.

Thanks for your help.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question