473,396 Members | 1,914 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,396 software developers and data experts.

Use a control on a Form as the Record Source for a control on a Different Form?

22
Hello, Using Access 2010...

I can't get this to work and it seems as if it should be :)
I have a text box on a form, which is a subform on a main form. The main form is Child Info, the subform is called AdultList, and the subform control is called AdultSFCont

I would like the value of the control Adult ID on the subform AdultList to magically appear in a control on a different form.

I have set the record source to =[forms].[AdultList]![Adult ID] but all i get is the #Name? error.

Can anyone help me? Thanks!
Oct 13 '11 #1
7 1734
NeoPa
32,556 Expert Mod 16PB
See Referring to Items on a Sub-Form but you're probably looking for something like :
Expand|Select|Wrap|Line Numbers
  1. =Forms![Child Info]!AdultSFCont![Adult ID]
Oct 13 '11 #2
CharT
22
Hello, thanks for the quick update- after I made the change to my form, saved and closed the db for a bit, and went to reopen and it keeps crashing... any suggestions of what would cause this? The error is: Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvenience.

It just keeps going in circles backing up and crashing... :(
Oct 13 '11 #3
NeoPa
32,556 Expert Mod 16PB
It sounds like a corrupted database. There is no further information to work on than the error message I suppose?

That sounds like a situation where you create a new blank database and import as many objects as you can that will work. Everything else will need to be recreated.

That's assuming you don't have any backups of course. A backup enables you to start from a much more recent position and save yourself a ton of work.

I'm afraid it's not good news whichever way you look at it though.
Oct 13 '11 #4
CharT
22
hmmm... would using an incorrect way of linking controls cause that? Maybe I did something wrong? I do have a backup that is only 1 day old, so not too much trouble, but I sure would like to know what causes this so i can try to avoid it again!
Oct 13 '11 #5
NeoPa
32,556 Expert Mod 16PB
I wouldn't have thought so. Access does have a bit of a reputation for getting itself corrupted I'm afraid. Any time connection is lost to the database file there is potential for such problems. As this is quite frequent when dealing with databases across almost any type of network, it's not too rare an occurrence I'm sorry to say.
Oct 14 '11 #6
CharT
22
Hmmm that's a bummer... Maybe this should be a new thread?

My brother is a pretty darn good programmer (he set up Bhutan (the country) on a solar powered wireless network that he designed and built and he works for companies that he can't even tell me about...)and he says "life's too short for MS" he seems to think that MS Access has a lot of faults, but, i have to say, for me it's worked well because I am not a programmer and yet, I have created a db that works...

But, the question for me is, when it's time for this db to go into full use over a network am I going to have to ditch MS Access and find another program? Are there any improvements to Access in the works that will make it more stable?

At the moment both the back end and the front end are on my local hard drive, no network involved as of yet, and I get these corruption issues from time to time. I just wanted to make sure it wasn't something I was doing wrong...

Char T
Oct 14 '11 #7
NeoPa
32,556 Expert Mod 16PB
Corruptions occur mainly due to processes not being correctly finished off. That can occur from disconnections, but it can also occur, I believe, from poor design.

I'm no real expert at this as I've experienced very few in my years of working with Access, but they can be painful when they do occur. I always tried to ensure my databases were only ever run over a LAN as far as networking goes. WANs, I would say, are fundamentally not suited to running Access projects.

As for deciding whether Access is good enough for your task, that is something you will need to consider. Many people are anti-MS & anti-Access when they have very little real understanding of the isuues. Mostly just prejudice and listening to gossip. There are many who know the situation better who also have serious misgivings though - in some areas particularly. I certainly wouldn't use it in all scenarios for instance, though frankly I would try to get around the problems if I could as, just as you've discovered for yourself, it's a pretty darn good tool for database work - particularly as a Front-End. If you start again using other tools I doubt you'll get so far so quickly.
Oct 14 '11 #8

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

Similar topics

1
by: Sham | last post by:
I have a form that is used for entering data. The problem is I have several tables, so I need some way to change the form's record source via combo box. 1. How can I make the combo box look for...
2
by: Lyn | last post by:
If I have a form where the RecordSource property is set to the name of a table, then on opening the SingleForm form I can cycle through all the records in the table one at a time via Next and...
1
by: Marcos Beccar Varela | last post by:
Hola, necesito solulcionar un tema que creo que tiene que ver con el manejo de calses. Hello to all, I need to make a button in a form , that when pressed, it oppens a new form, which contains a...
0
by: DavidB | last post by:
I'll try to explain my situation as clearly as possible, but its a tad convoluted. Primary form in question is the Contract Administration form. Secondary form is a Find Contract form (pop up...
1
by: Whiteeagle | last post by:
Hi all I have inherated a bit of a dilema and not sure about the correct way of solving the problem. The company I work for have 60 identical but seperate databases which are all in seperate...
1
by: questionit | last post by:
Hi It it possible to have more than 1 tables to be the Record Source of a form ? If yes, how could it be done ? I have tried relating 2 forms with primary key but this way only one table's...
2
by: mhifd009 | last post by:
I just wondered what your thoughts were on the best way to reference the 'record source' within a form or report, i am finding that it is best to use the SQL rather than the actual named query (a...
5
by: bbatson | last post by:
Hello, Suppose I have two forms, Form1 and Form2, both of which are open. Form1 has three fields, EmployeeID (Primary Key), EmployeeName and EmploymentDate. There is a combo box on the form that...
1
by: thread | last post by:
Hi i built a form that getting dynamic SQL string,the SQL string is placed in the record source when the form is opened. i notice when trying to reduce some proccess time from the form that it...
15
beacon
by: beacon | last post by:
Hi everybody, Using Access 2003. I'm trying to dynamically set the record source for the current form and set the control source for a text box to input data to one of three tables. I have a...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.