Odd Problem With SubForm Messing Up My Form

Sep 12, 2006

I am creating a form that also contains a couple of subforms. However, when I view it outside of Design View, all the other controls adjacent to the subform part of the main form are pushed down and displayed below the subform. I want the subform and the main form's controls to be displayed side by side.

Does anyone have any input on this?

View Replies


ADVERTISEMENT

End User Messing Up Again

May 5, 2006

Hello all

Long time since posting so hope everyone is doing well. First of this is not my database, it was created by another who has since left the company, but the problem is an unknown end user has converted it using the DAO command, but only partially meaning whenever anyone opens it, it stops at an error and asks you to work with a backup. There is no backup (as I said, this is not my doing, but a friend may have their neck on the line as someone looks for someone else to blame). Across my employer, some machines run Access 2003, others Access 2000 (I know what you are thinking, believe me); I feel someone has opened it in 2003 and the rest is history.

The question is, is there anything that can be done to retreive the data in a situation of partial conversion and no backup? Can the conversion be completed? If so, can someone give me some tips, as I have never had to do this.

Thanks in advance

Mike

View 1 Replies View Related

Linked Tables Are Messing Me Up

May 23, 2005

I have data from a propritery system that comes in csv format. I have set it up to link to an access table so that when the csv is updated, so is the table. This table shows customers and their purchase amount. I have created another table where I enter the payments that are made. This way the payment information does not change with the link.
In the forms I can calculate a balance due subtracting the payments from the purchase amount. What I am trying to do is make a query or report that shows the customers that have a balance due (purchase amount from linked table minus payments from access table) greater than zero. Since I can't make a one to many relationship with the linked table, I am not able to create these calculations in the query. I am trying to make the calculated fields from the form show up inside of the report I am running.

View 5 Replies View Related

Something's Messing Up My Property Sheets

May 16, 2007

I've got a bunch of forms with VB behind them that disables controls, changes labels, etc.

Several times I've saved off my MDB (well, ADP) file, only to find out later that my property sheets had new values in them -- and I didn't physically put them there!

Here's a greatly simplified example:
1. The prop sheet for Form X has AllowEdits set to Yes.
2. Form X has a button which locks the record (i.e., the OnClick sets AllowEdits to "No").
3. I make some changes to the code/form/property sheets, maybe run the debugger....
4. I do a Save.
5. I launch the program and discover that all my records are locked, even where the lock button wasn't pushed.
6. I check the prop sheet for form X and discover that AllowEdits has been set to No.

The thing is, I've tried to reproduce this (through variations on step 3), but haven't been able to.

Somehow, context-based info is getting saved into my property sheets, and I'm not sure how!

Any help would be appreciated (besides "make your VBA code more defensive" which I already know).

Thanks.

View 5 Replies View Related

Requery Subform From Another Subform Both Connected To Main Form

Aug 8, 2014

I have a main form that has two subforms, subform1 and subform2, both connected to the main form. When I enter data into a field in subform1 I want subform2 to requery and update to show the calculated results from the new or changed data in subform1.

I found that if I do a refresh it works when changing the data but not when entering a new line of data in subform1. I tried some code in the after update field of on subform1, but cannot seem to get anything to work.

Me.[subform2].Form.Requery

Does not work. It errors and says it cannot recognize subform2 as a field. I have tried a field name on subform2 but I still got the same error.

View 1 Replies View Related

Forms :: Moving A Subform Within A Subform Of A Form?

Aug 19, 2015

I often move sub forms up and down within a form using something like.

Code:

forms!MyMainForm!MySubform.form.top = 500

However, I am having trouble moving a subform within a subform of a form.

Code:

Forms!MyMainForm!!MySubform!MySubformSubForm.form.top = 500

View 1 Replies View Related

Forms :: Navigation Form - BrowseTo Command To Open Up A Form In Built-in Subform Module

May 3, 2013

I'm working on the Navigation Form template in Access 2010, which is new to me. It appears that one needs to use the BrowseTo command to open up a form in the built-in subform module. I'm trying to create a couple of buttons where each button opens a form in a different data mode; one in read-only and one in add mode. Here is the syntax I used for read-only:

DoCmd.BrowseTo acBrowseToForm, "frmSales","frmNavigation.NavigationSubform", , ,acFormReadOnly

frmSales is the Sales form I want both of the buttons to open and frmNavigation is the Navigation form. It seems to be ignoring the data mode part at the end however. It only will open in Edit mode. Is there something I'm doing wrong with this command?

View 3 Replies View Related

Forms :: Design Form That Looks Very Similar To Either Split Form Or Subform

Jun 2, 2014

Basically I need to design form that looks very similar to either Split Form or Subform. I have attached a print screen of what I roughly need. The form is split into two parts. In the first/top part there are some List Box/Date fields that act as filters to the bottom form, so the bottom form displays only records that match values in red. The second part of the top form has some field that require input from user and then these records are added to the bottom form. I was trying to use both Split Form and Subform and none of it is working,I have attached an example of database and this form would be based on data from Query1.

View 5 Replies View Related

Forms :: Requery Form And Subform After Popup Form Close

Aug 19, 2013

I tried all sorts of permutations of the requery command but apparently I'm too dense to figure it out.

Form 1
subform 1 > button to open pop up form
subform 2
subform 3

I'm trying to requery a combo box (inside of subform 1) based on a table that is updated from the pop up form.

On pop up form close, what's the correct syntax for re-querying subform 1?

View 2 Replies View Related

Forms :: Linking Form To Subform Set To Continuous Form View

Aug 22, 2014

How to populate the parent form's PK to multiple records in a child subform set to a default view continuous form?

In other words, how to auto populate the primary key to multiple records displayed the subform?

View 5 Replies View Related

Tab Style Master Form - Navigation Buttons For Each Subform Within Form

Jan 26, 2015

I have created a master form, which is a tab style. I have five additional forms that I want to use as sub-forms within each tab. I also want to include master navigation buttons that will work for each sub-form in unison. In other words if I navigate to record 10 on tab 1 and switch to tab 2, I want the new tab to show the information related to record 10. It would appear that I need to link them together in some fashion.

View 1 Replies View Related

Form,Subform,Sub-subform Help Please!!

Feb 18, 2005

I currently have a couple of problems with an input form set-up.

I have a main form (frmWebSites). On this form I have a TabBar and one of the Tab pages holds a subform (frmSiteDetails). Within this subform I have a simple option group to select between 2 further subforms that are themselves subforms on frmSiteDetails (these are frmWebSites_pgeSiteDetails_Features and frmWebSites_pgeSiteDetails_Membership). I have coded the option group to make one sub-subform visible and the other invisible and vice versa depending on what option is selected.

This procedure I call from the Click event of the option group, both the Current and Load events of the frmSiteDetails.

The controls that exist on each of the sub-subforms are bound to the same table tblWebSites as the controls on the main form (frmWebSites).

The selection between the sub-subforms works perfectly well between the 2 forms when I am on an existing record and am just viewing the data.

1. The first problem arises if I want to change the data on one of the forms.

If I change a value in any of the check boxes or combo boxes etc and then try and select the other sub-subform I get the Error message 'The data has been changed. Another user edited this record and saved the changes before you attempted to save your changes. Re-edit the record.'

I can OK this and select the option button again and the page changes as it should and the data has been updated.

2. The second problem arises with new records. If I try to enter a new record by entering details into controls on the main form everything is OK. I then try to enter further data on the currently visible sub-subform, but as soon as I then try and select the option to make this form invisible and the opposite sub-subform visible I get the following error.

'The field 'tblWebSites.SiteName' cannot contain a null value because the Required property for this field is set to true. Enter a value in this field.'

I don't understand why this is saying it is a null value as this is the first piece of data that is entered into the form. Furthermore I don't understand why it is looking at the value of this field at the time it does.

This locks me up. I can still enter data in the remaining fields of the currently visible sub-subform but not change to the other.

Any ideas where my problem lies??

Please be gentle with me, I am a complete new boy at this and this is my first Database.


Regards

Jama

View 1 Replies View Related

A Form With A Subform In A Subform

Aug 10, 2005

I do not know if this is possible but I am trying to use a subform in a subform. Meaning I have a picture(picsubform) which is in a subfrom(frmPicExample) both of these are in a form(depot tracking). The goal of this little experiment is for every record of an item it will have the ability to add, delete, next, previous etc. to allow more then one picture to be linked to one record. My problem is that I am get the following error:

(Microsoft Office Access can't find the form 'FrmPicExample' referred to in a macro expression or Visual Basic Code)

the follow is where the debug lands...

Private Sub Form_Load()

OrigHght = Forms!frmPicExample!picsubform![imgPicture].Height
OrigWdth = Forms!frmPicExample!picsubform![imgPicture].Width

End Sub

how do I add the primary form called depot_tracking?

Thank you again

roborro

View 1 Replies View Related

Forms :: Open A Form With Subform From Separate Form

Oct 23, 2014

I'm trying to open a form with a subform from a separate form. I've never had any issue before, but all of the sudden, the subform doesn't seem to open immediately. I get the error

Code:
Method 'Form' of object '_SubForm' failed.

After that, it opens (subform and all), but some calculated text fields just say "#Name?#"
The only thing I did today was add a command button to that subform.

When I try opening the form (or subform) from the navigation pane, I get

Code:
The expression On Current you entered as the event property setting produced the following error:

A problem occurred while Contracts was communicating with the OLE server or ActiveX Control

When I step through the code, it doesn't reach the On Current event.

View 5 Replies View Related

Subform Opens New Form That Gets Its Info From Main Form

Dec 20, 2011

I'm working on a project that has two tables. "Calls" and "Customers". The Customers form has a subform, "Calls Subform" in it. When you click on the (New) Hyperlink a new form opens, "Call Details". I would like to pull information off of the "Customers" Form and insert it into the newly opened "Call Details" form.

Problem #1) Home Phone (named "Phone" and Text223 (named "CID"): are both bound controls so I have to do this in an OpenArgs type process.

Further details:

On "Customers" the following is true:
"25" is the "ID" for that customer on the "customers" table
"Home Phone" is the home phone number on the "Customers" table

On Call Details the following is true:

Home Phone is Bound to a table "Calls" and needs to pull it's data from Customers Form..Text223 is CID and bound to the table "Calls" and needs to pull it's data from "Customers" form.

View 14 Replies View Related

Form/subform

Sep 4, 2006

Hi

I have used the wizard in Access to make a form and created a subform for it. I have noticed that the subform was pulled from a query; however, I think the form is pulled from the table directly.

I am not sure about the last point I mentioned above and wonder if any one knows if it's correct.

Thanks in advance.
B

View 3 Replies View Related

Form/Subform

Jul 8, 2005

Is it possible to in a form have some buttons and depending on which button you push a different subform will be displayed?

For the moment I have buttons that opens entire forms that are almost the same but with different subforms. But it feels wrong to do it this way?

-jake

View 3 Replies View Related

Form/Subform

Jan 7, 2006

I have been asked at work to take a personnel database done in File Maker and convert it to Access. For the most part its not a difficult process except for the forms.

There is a main form with all of the relevant information (date hired etc.) but I require 3 subforms that contain personal information. These are labelled
“Personal” home address, home phone, home email
“Emergency” Emergency contacts in case of accident etc.
and “Training” requests the individual has made for training and courses they have been sent on

In File Maker the subforms have tabs which you click to open or close. The “Personal” sub form (for example) opens with all of the relevant info while the main form still stays on the screen. You then click the tab again and it closes. They would like something similar to this in the Access form. Problem is, I don’t even know where to start looking.

Would some kind person point me in the right direction.

View 2 Replies View Related

Form And Subform Help

Jan 13, 2006

hi,

i am after some help on setting up a form,

let's say you hold a car event every year. (car event 2004, car event 2005, car event 2006)

your entrants could come to each of these events. I have an entrant form and would like to add a event subform with a combobox that you can select each year that the entrant is there.

is this the best way to do it, and how would i go about it.

(i have included a pic of my current entrant's form with the event sub-form but it won't allow me to use a combo box.)

View 1 Replies View Related

Form/subform, Is It Possible?

Jul 12, 2006

Hi,

I have main form with subform. Is it possible to open form on specific record, like main form ID = 2, and then add records to subform? I keep getting error (Changes were not succesful... error 3022).

For example: I would like to open form Invoce and I want it to open on Invoce number "2". Record number "2" was entered before this opening. That also mean that I get data on subform that are connected with Invoce number "2". Now the question is: Is it possible to add a new line in subform?

Thanks in advance.

View 5 Replies View Related

Form/subform

Jul 13, 2006

on my form u find a record by inputing 1 of 3 product numbers.
if a user inputs a product number for BRAND A
how can a record on my subform automatical display BRAND A company name

View 1 Replies View Related

Form And Subform

Aug 1, 2006

Hi I have 2 forms both have a field called date, what I need is when I open a form in the sub form it will appear all the records wich have the same date of the opened main form, I don't have a clue about relating the forms, can you give me detailed instructions!!
Thanx

View 5 Replies View Related

Need Help With A Subform Within The Same Form

Nov 29, 2006

Hello everyone. I have a quick question. I am creating a staffing database for a nursing staffing agency. At present I have 3 tables: Enter/New nurses, Facilites, and Schedule a nurse. The schedule a nurse table is linked to Enter/new nurse by Nurse's name feild and to the facility feild by facility name feild. My primary index in each table is Nurse's Name (enter/new nurse) Facility (facility) and Nurse's Name (Shceudle a nurse).

I need to be able to enter schedules for each nurse. I created a form based on the schedule a nurse table using on feild Nurse's Name which is a pull down. I then created a subform based on the schedule a nurse table with all feilds excluding Nurse's Name. When I enter feilds in after I pull down the nurse's name it tells me the index is null and i can't enter any data.

I did this because I need to see (when I pull down a nurse's name) exactly each entry for that nurse under the schedule nurse's table. Can anyone tell me what I'm doing wrong or offer an suggestions as to what to do if this process can not be preformed. Thanks in advance.

Justin

View 3 Replies View Related

Possible To Have 2 Of The Same Subform On The Same Form?

Oct 22, 2004

Hi,

I have a database that keeps track of schedules.
A user will select a week and will have his/her schedule for the week.
I am thinking of having a tab control and having 1 tab for every day of the week.
I have created a subform which has time,location,city, person, etc. I have used a subform because on any given day there may be multiple entries of events.

If I were to do it this way I would have to have the same subform on each tab control and then try and add 1 to the date on everytab. I am unfamiliar with incremented recordsources so can someone steer me in the right direction?

Does anyone have any suggestions on if this would work? or suggestions on how I can do it differently?

My tables are as follows:

User
PK UserID
Username

Report
PK Date
PK Time
PK User ID
Location
City
blah
blah


Thank you for your help.

View 3 Replies View Related

Form/subform

Oct 31, 2004

I created a form that has a dlookup statement in an after update event procedure that populates a field based on what is entered in another field. It works great until I dragged the form onto another form to create a subform. When I change the data (using the form/subform) in the field that executes the event procedure I get an error, running the same form by itself works perfectly.

Private Sub cboservicetype_Change()
Forms!frm_Accounts!txtpayment = DLookup("[monthly_payment]", "[tbl_Support_Service_Types]", "[service_type]='" & Forms!frm_Accounts!cboservicetype & "'")
End Sub

The error I get says: Microsoft can't find the form frm_Accounts referred to in an expression or visual basic code.

Any ideas?

View 4 Replies View Related

Form/Subform

Dec 3, 2007

Hi there,

I have a form which is also build up with a subform. The form has four fields student_ID, Surname, Forename, and Numhus. The subform is build up of module and mark fields.

The problem is when I update any field on the subform (i.e., module or mark) the information is updated perfectly to the respective table, however, the Student_ID is added to the form table with empty fields in Surname, Forename, and Numhus. This in return creates a new record with Student_ID field only.

What I really want it to do is when I update the fields in the subform, it doesn't affect any other field in the main form.

N/B I have a time and date which is always updated when a field is updated in any of the subform and form. The Datemodified and Timemodified fields are in the main Form, as (hide column). This might be contributing but how to rectify it ?

Thanking you in advance

Regards

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved