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

I want data chosen from a combobox in a subform to be entered into my main form

I have a sub form that allows me to choose a students ID then the control source is set so the students ID comes up in the main form to allow me to enter data about that specific pupil. however when i return to my original table the data entered from the subform does not appear, why is this?
Feb 7 '14 #1
4 990
NeoPa
32,556 Expert Mod 16PB
I think you misunderstand Sagar. This is in the Access VBA forum. All objects referred to are Access objects and are quite different from similarly named ones in other areas.

VBA code exclusively is used for developing Access projects.
Feb 7 '14 #2
NeoPa
32,556 Expert Mod 16PB
WallaceGirl, The only response I can give to your question is that something is wrong. There is too little information in the question for anything more helpful.

Please reread the FAQ on how to post questions properly in order to avoid wasting yours and others' time and efforts.
Feb 7 '14 #3
mcupito
294 256MB
NeoPa, could it be that the form is not a continuous form?

WallaceGirl, I second NeoPa's notion, as should you, regarding the lack of information regarding your question.

Are the fields on the form representing actual fields within a table? ( i am assuming they are )

I am not quite sure what to suggest, but I will throw this out there.
You could try a button that runs VBA code to save the form.
Expand|Select|Wrap|Line Numbers
  1. DoCmd.Save acForm, "Your Student Form Name"
This would be in the OnClick command of a "Save" button. As of right now I am not sure what else to suggest.
Feb 8 '14 #4
zmbd
5,501 Expert Mod 4TB
Child forms are not usually supposed to effect the parent.
Normally
Parent form is linked to one table
Child form is linked to a second table that is related by primary/secondary keys
The two forms are then related thru the master/child field properties; thus, the parent form acts as a filter for the subform.

There are occasions wherein a subform might use a query that has linked the table back upon itself, and in which case, the recordset can become uneditable, has happened to me with one too many left-joins (^_^); however, there can be workarounds.

However, as with Neopa, we're only guessing here until OP replies. It would help to keep the thread clear until such time as that occurs.
Feb 8 '14 #5

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

Similar topics

4
by: Craig M | last post by:
Hi, I have 2 forms, frmretailorders, and frmretailorderline. in the oncurrent of the main form, I check what the value of !status is. If it is "complete", then i disable all text and combo...
1
by: New2Access | last post by:
Hi, I have a form thats used to enter records into a table. The table and form have fields for Name, week, project, and hours. To assist users, I wish to add a subform that will show them how...
18
by: Darryl Kerkeslager | last post by:
I don't do much with subforms - in fact I've deliberately avoided them - but .... I have a tab control that will contain several subforms, each bound to a separate table, and each table/subform...
1
by: luv4nrt | last post by:
Hello all, I have a membership dB in which I have a form that updates data in 4 tables. One of the tables is bounded to a subform within the Main membership form. I am trying to link all four...
3
by: virtualgreek | last post by:
Dear all, I have a scenario that is driving me nuts. (MS Access 2003) I have a form/subform (Continuous form) where it gets its data from tables Order and Order_Details. In the footer...
1
by: Elainie | last post by:
I have a main form and in it I have a datasheet subform filtered on surname, I would like the users to select a name in their list on the subform then the data moves up into the main form... Is...
4
theaybaras
by: theaybaras | last post by:
Hi everyone, You've all been such a huge help to me since joining, and I'd just like to take a second to let you know how much I appreciate it! That said, I have another supplication! ;) I have...
4
by: Savita23 | last post by:
Hi, I have a subform in datasheet layout embedded in the main form.I want to invoke a procedure on the double click of each record in the subform.Is there a away by which I can fire the double...
1
by: vvasnm | last post by:
Hi This is surya, I am struggling with one issue regarding the updation of the value in the sub form ,when the related data has been deleted from the data sheet view of the main form. I am...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.