Values In Source Control Not Updating

Aug 5, 2013

I'm not very familiar with Access but I need to modify an existing DB. I have added new values to it and they should appear into the source control drop down menu but only the original values appear. How or where those values can be added or updated??? I'm attaching some pictures ....

View Replies


ADVERTISEMENT

Replace Parameter Values In Control Source Property

Apr 28, 2007

I have a text box in a report, with it's control source property set to =[BegDt].
Upon loading the report a message box pops up and asks the user for the value of [begDt]. This occurs 3 more times for 3 other parameters.

Now I want to change the design of the report so I decided to put these 4 parameters on a form so the user can fill in the 4 values all at once rather than responding to 4 message boxes that pop up when you run the report.

The problem is now the control source properties in all the different text boxes need to be changed to [forms]![frmABC]![txtBegDt] etc.etc. There are over 100 text boxes in this report that make reference to the 4 different parameters.
Is there a replace command I can use to change all the occurrences in the text boxes or perhaps a simpler way would be to pass the values to the report through code.

I tried placing this in the report header's format event and it doesn't seem to have any effect.

Code:Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)begytd = [Forms]![frmABC]![txtStDt]endytd = [Forms]![frmABC]![txtEndDt]curmo = [Forms]![frmABC]![cboMo]curyr = [Forms]![frmABC]![cboYr]End Sub

I should mention that the report uses a table (tblRecap) as it's record source. I tried using a query that refers back to the form for the parameter values but that means I have to use the query as the reports record source and that creates a problem because the report needs fields from the table to perform calculations.

Can someone help me with a solution please.

Thanks for your time.

View 2 Replies View Related

Remove Record Source/Control Source

Sep 19, 2005

I have an unbound form with three tabs. On each tab there is a sub form. Each tab is a search form and each sub is a results returned. I have made everything unbound and set the sub form recordsource and its controls control souce on afterupdate of the main form search criteria. Works fine except for after some use the db decides the sub forms are not unbound and sets the record source and control sources.

I'm trying to do a

Me.PollingPlacesResults.Form.RecordSource = ""
Me!PollingPlacesResults!PollID.ControlSource = ""


but this does not seem to work in actualy removeing the record source and control source.

View 14 Replies View Related

Forms :: Invalid Control Property - Control Source

Sep 24, 2013

I added a new field to one of my tables and query, but when I try to add a control for that field into my form it is not recognising it and the field isn't appearing in the sources for the form, even though the table is sourced to the form? Or am I going to have to do the usual and redo the entire form because I made a minor adjustment?

View 1 Replies View Related

New Field Does Not Show In Control Source For Form Control

May 28, 2015

I have table that I had to add a new field to which we update with a form. I tried to add a control for the new field but the field does not show up in the list for the control source. I am trying to add a list box to the form with a blank and 5 options.

I have attached screen shots of the table design and the form. The table has the field in datasheet view and I have manually entered a few entries in it but it still will not show in the control source for the form control. The top section of the form is where we enter and select the data for the new records. The bottom section (circled in red) autofills the matching record, from separate tables, for updating with the new entries.

I have added form controls for modified fields in the past so I am confused about why this is happening.

View 2 Replies View Related

Updating Table From External Source

Sep 10, 2007

Dear Forum,

I have a question and I would be very happy if you could help me with some thoughts on how to start.

I have a database, which contains one table tbX, which ist interesting in this context. tbX needs to be updated on a regular basis, hence it would be very helpful to automate this process.

Source is the table tbY, which is located in another database in a different directory. What I am looking for is basically a query (or do I need a macro?), which deletes tbX, imports tbY and changes its name to tbX.

As there is no macro recorder like in Excel I find it very difficult to find a start here... :confused:

I'd be happy for any suggestion.

Thank you.
Diana

View 3 Replies View Related

Forms :: Updating Record Source Of A Subform

May 19, 2015

I currently have a query that a subform uses to display some results. In this case, there are 3 columns displaying the name of a sandwich, the ingredients, and the number of servings of each ingredient. It looks like this:

SandwichName IngredientName Servings
Accordian Lettuce 1
Accordian Ham 1
Accordian Cheddar 1
Accordian Mayonnaise 1

That is the current output to the subform. The SQL statement I use to generate this list is here:

SELECT [TBL_Sandwich].[SandwichName], [TBL_Ingredient].[IngredientName], [TBL_SandwichContent].[SandwichTotalServings]
FROM (TBL_Sandwich INNER JOIN TBL_SandwichContent ON TBL_Sandwich.SandwichID=TBL_SandwichContent.Sandwi chID) INNER JOIN TBL_Ingredient ON TBL_SandwichContent.IngredientID=TBL_Ingredient.In gredientID
WHERE TBL_Sandwich.SandwichID=6;

I have bolded the last item the 'SandwichID'. It is this number I need to change dynamically based on a button being pressed on the main form. Essentially they enter a new sandwich, put the ingredients in, save it io the database, and I save the servings for each item as 1. Now I'd like the new sandwich to be displayed in the subform using the new ID of the sandwich which was just created.

If I try to put this long SQL statement in the RecordSource property I am told it's too long for the property to handle so I can't set this property dynamically. how to get the subform to requery with the new ID number of the item I just generated. I can get the ID number via DLookup, that's easy, but setting the subform to use this is my problem.

View 8 Replies View Related

Control Source

Jul 27, 2005

Hi all, at the moment all of my field are control sourced. I heard there is a way whereby the field could be unbound and one button it the control source for them all. Im not entirely sure what this means or how to go about it. But i think it would solve the problem of if my users start entering data into a record and then decide to leave it, this record is automatically added to the table, with little or no data. As the data in the table is used for statistics, the table showing records which are not actually there is causing problems. Im not sure if i explained this well, but i would be grateful of any help. Thanx

View 1 Replies View Related

SUM With WHERE, As Control Source

Sep 13, 2005

I have a subform listing items for purchase. Some are services and are not taxable, some are products and are taxable.

So far, I am calculating the sales tax for each record (item paid for), based on whether the thing is taxable or not and putting that result in a text box (txtSales_Tax) on the form. Since these calculated amounts aren't stored in a field, I can't SUM them, since SUM only works on data in table fields. Can someone tell me how to get a total?

Otherwise, I'll get rid of txtSales_Tax entirely, if someone can tell me how to write a SUM function, as a Control Source, that includes an IIf, or a WHERE, so it only adds items where the yes/no field Taxable=True.

I've got an IIf with a SUM function in it but, even in the footer, that only works for the current record. I need a SUM that has a nested IIf or WHERE in order to include all the records.

View 1 Replies View Related

Do I Need A Control Source?

Mar 30, 2008

I have a drop down list of Last name and first name.

I want this to be the only unlocked feature on the page. When a name is selected the other information is shown (the persons cc#, Exp date, phone number, email etc.)

I am almost sure its a control source, but i'm not 100% as i'm relatively new to Access..

Another issue I would like to know is how to show the Last Name, First Name in the selected drop down after its selected, currently its only showing the Last name.

Thanks in advance

View 4 Replies View Related

Control Source

Apr 1, 2005

is it possible to change the control source of an unbound text box ?

For example i have a textbox which simply displays the number of current records displayed i.e. =DCount("*", "queryname")

Now i wanted that with the click of a button (or something), i wanted to change it's controlsource to =DCount("*", "queryname2") ... however, as a result i got #name instead of the correct count.

Thanks

View 5 Replies View Related

Control Source

Jul 14, 2005

I have created a new field in a Form and named the Control Source "Active". However, when I vew in Form View there is a "0" in the field and it also does not allow me to type anything in the field.

Any help would be greatly appreciated.

View 3 Replies View Related

Do I Need A Control Source?

Mar 30, 2008

I have a drop down list of Last name and first name.

I want this to be the only unlocked feature on the page. When a name is selected the other information is shown (the persons cc#, Exp date, phone number, email etc.)

I am almost sure its a control source, but i'm not 100% as i'm relatively new to Access..

Another issue I would like to know is how to show the Last Name, First Name in the selected drop down after its selected, currently its only showing the Last name.

Thanks in advance

View 1 Replies View Related

Control Source?

Jan 30, 2007

I want to select JPEG's and Visio files to import and viewable in the report format.
Can anyone give me an idea of how to achieve this...I have been told I need a control source...

Thanks

View 4 Replies View Related

Conditional SUM As A Control Source

Sep 8, 2005

I'm creating an order form for a clinic.

Health-related services are not charged sales tax, but products are.

In order to have one subform to do the job (rather than one for non-taxable and one for taxable items), I'm trying to create separate running sums of taxable and not taxable items from the same query, but am not getting far. "WHERE" statements don't seem to be working in Control Source code.

Currently, there's a cboItem_Name that populates txtItem_Cost. There's txtQuantity and txtExtended_Price. All working fine. The cbo query includes whether the item is taxable or not, from a YES/NO field in the table.

I'm trying to get txtTaxable_Sub_Total to SUM[Item_Cost]*[Quantity] where [Taxable] = YES, but it ain't happenin'.......

Is there a better way to go about this, or can someone suggest correct syntax to me?

View 10 Replies View Related

Control Source Question

Feb 13, 2007

Greetings,
I have a search form with a list box that displays query results. Double clicking on a row in the list box opens a detail form with the detail of the selected record. The other way to get to a detail form is by clicking on a command button that displays the detail of each of the records in the query result, one by one.
The problem is that there are many more fields in the detail form than the query that is its' control source. Since the detail form displays an individual record, it seems like it should be able to go into the table and fetch the rest of the data. No?

View 2 Replies View Related

Control Source Not Working.

Jun 21, 2005

I have created my query based on a table in order to find how many data are in the list, then I have added a textbox in one of the form and I added this line in the control source:

SELECT AcademicAudioCount.Total FROM AcademicAudioCount;

This is what I get: #Name?

But its not working, any help.

Thanks.

View 2 Replies View Related

Control Source Problem

Mar 26, 2006

ok guys very simple question

i have manually built my form in Access 02. Now i want to bind a particular control to a table - ie. when the user hits 'Submit' the record will get written to the correct tables. simple data entry

i have a table called tblShipping, in which there is a field called Goods. in the control source i have the expression: =[tblShipping]![Goods] but this is not working. in the text box (in normal view of my form) appears: "#Name?"

what am i doing wrong?

View 1 Replies View Related

Text Box Control Source???

Jun 20, 2006

Hi everyone,

This is a very simple problem, and it seems to me like it should work but it doesn't. On my form, I have a field called [mindate], which looks up the earliest date from a table. I also have a field called [maxdate] which looks up the latest date in my table. These both work great. My third text box [difference] is supposed to find the difference between the two above dates in days, but it doesn't work.:eek: The control source of this [difference] text box is this:

=DateDiff('d',[mindate],[maxdate])

Any suggestions?
Chris

View 4 Replies View Related

DtPicker Control Source

Oct 11, 2006

Hi All,

I'm having a wee problem with a form containing a DTPicker Control. It should display the date for a given record, as defined by the control source, however instead it seems to always displays the default date instead. Does anyone know why this might be happening? I have tried removing the default date but that's not an option, and when the user loops through the records in the control source it populates all of the other controls except the dtpicker control!

TIA

Dan

View 2 Replies View Related

Control Source In A Report

Sep 9, 2004

hey

i really hope someone could help me with this, i have a query (Exp Query) which calls from 2 tables Expenditure and VAT.

My VAT table lists all the VAT Months and their relative Quarter Number, VATMonth is the primary key but because it contained other text, i had to make it a text value rather than format it as a date. so the problem is when i make a report, it sorts the VATMonth in alphabetical order, eg June 2004,July 2004, May 2004.

my VAT table has an ID field which is an autonumber, so i use that to order the list in things like my drop down box on a form. so how can i do the same thing in my report.

the report consists of 3 months which i need to SELECT VATMonth FROM Exp Query and ORDER BY VAT.ID (also from Exp Query) can i do this and if so could someone tell me how it would be written, i just keep getting syntax errors.

thanks for any help,

Baz

View 4 Replies View Related

Report Control Source

Sep 28, 2004

I am trying to get Access to print out a field that is city, state, zip except when no city is set.

My control source criteria is =IIf([City] Is Null," ",([City] & ", CA " & [Zip Code])) I've tried IsNull([City]) instead of [City] Is Null to no avail. All I get in the box is #error. I can get just [City] or just [Zip Code] to work but even if I just put in =[City] & ", CA " & [Zip Code] I still get #error.

Please help! I just got my hair cut so I don't have that much to pull out.

View 3 Replies View Related

Control Source = Field From A Different Mdb

Feb 10, 2006

I need to add a text box to a form, but I need the contents to be a column in one of the tables of another database.

I can do it with a data from a table in the current database, but I can't figure out the syntax to bind to an external database.


I'm assuming it can be done because I can do it in Excel with:

='C:Documents and Settingsc-liam.gartsideMy Documents[OtherDatabase.xls]Sheet1'!A1

Any idea?

TIA, Liam

View 5 Replies View Related

Different Criteria For The Same Control Source

Dec 5, 2007

Hi all. Been away for some time due to the necessity of working two full-time jobs and maintaining house and family. I'm now back to one job and have a bit of time on my hands so I'm making a little db for myself.

I keep going to the video store and renting movies that I already have so I decided to input them into a db and play with it to resharpen my dull skills.

Very small and simple. I have a query that's fed by two tables. This is what I want to feed one form that will display in datasheet view when a selection is made from a cbo on another form. Not a problem. What I want to do is have the one query and one form for two or more cbo controls, each passing a different criteria. For example, in cboGenre when Action is chosen, the datasheet view shows all the movies with that genre. Then when another is chosen, it requeries with those (the requerying part isn't a problem). Then, when PG-13 is chosen from cboRating, the datasheet shows all the movies with that rating.

I can do this when it comes to passing where conditions when opening a report, but a report isn't really the cleanest way to go.

Hope everyone has had a great year (at least as long as I've been here) and look forward to your responses and also browsing the information here again.

Jim

View 11 Replies View Related

Forms :: Set Control Source

Apr 8, 2014

is it possible to set 2 control source to a textbox.i have a textbox in a form where it gets the value from subform =[Child9].[Form]![Text25] and i need to save it in a table in field INV_TOTAL

View 3 Replies View Related

Newbie Question Control Source

Mar 3, 2006

hello,
I made a text box and I am trying to assign an SQL query to it.

I tried putting this in the "control source"
=(SELECT 4)
But it keeps telling me #Name?
It's driving me completely instane!!! why can't I do an SQL query in the control source??


Please save the hair on my head and help me. :)

Thanks in advance!

View 4 Replies View Related







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