Updating A Listbox According To The Record You're Viewing

Apr 30, 2005

Hi

I have a database containing 3 tables (for now):
Customers
Orders
Catagories

Now i also have a form with customer information.
In that form is a listbox with a query statement, so that should display wich orders are placed by that customer.

SELECT Orders.[Order-ID], Orders.Description, Orders.Date, Orders.Category FROM Orders WHERE Customer=[Customer-ID];


Now this works for the first costumer record being displayed.
However when i view the next costumer, the listbox still displays the order information from the first customer.

How can i get the listbox to update itself when a diffirent record is viewed?

Thanks in advance

View Replies


ADVERTISEMENT

Record Viewing Within Tables

Apr 29, 2008

I was wondering if there is some setting that can be set such that certain records within a table are not visible when the table is opened, or a form is accessing its records.

It seems from time to time, some records seem to 'disappear' from view?!?

Other than a filter...

Does anyone know how this is possible, and what can be set or specified in order for this to be happening?

Thank you for any enlightenment...

View 2 Replies View Related

Viewing A New Form With More Details Of A Record

Nov 27, 2006

I have got a form with summarised data (of records) on view for people to look at. (this is a continuous form). For each record I would like to have a button that displayed another form with more details on it. So by pressing the button opposite a particular record it would take the Id value of the record and open another form (with more details) at that particular record.

I would be very interested in seeing this done with a macro if possible but beggers can't be choosers!

View 4 Replies View Related

Listbox Not Updating

Jan 25, 2006

Greetings to one and all
I have a minor problem with a list box not updating that is driving me up the wall.
Here is what I have
I have a Form that has multiple pages (Tab control) and in one of the pages I have a list box that has row source of :

SELECT DISTINCT temp_wbs.Wbs_Element_No FROM temp_wbs LEFT JOIN my_wbsids ON temp_wbs.Wbs_Element_No=my_wbsids.Wbs_Element_No WHERE (((my_wbsids.Wbs_Element_No) Is Null)) ORDER BY temp_wbs.Wbs_Element_No;

The temp_wbs table is created after a user runs a process in a previous page, but when the user selects the page that has this list box – it is not updated with the current values from the temp_wbs table – it still contains old data.

However – when the user clicks a button on this page to delete their list (data from my_wbsids table) – the list box refreshes with the correct values from temp_wbs

What am I missing?
Any help in this matter is greatly appreciated
Thank you,
Kenny Louden
:confused:

View 4 Replies View Related

Updating A Listbox

Nov 27, 2006

Hi,
I've a listbox. Once i doubleclick on a data on this listbox an editing form will open.
I modify my data, save, close. But the data on the listbox are the same as before..
how can i update this data?? Something like once i saved & closed the editing form the listbox will update....don't know..
i've tried stuff like requery,refresh, ... but didn't work.. (was my mistake maybe)..:D
thx in advance

View 5 Replies View Related

Listbox Not Updating Table

Mar 16, 2006

Hi All,
Apologies if I'm posting in the wrong forum. Not quite sure whether this should be in tables or forms.

My question is, I have two tables, one containing general data and one containing data used to populate a listbox. I want the selected value in the listbox to be used to populate the corresponding field in the other table but my users want to be able to tab through the entry form. If they tab over the list box without actually selecting a value, the table is not updated with the listbox value. How can I make this work?

Hope that's clear and someone can help.

Many Thanks

Rich.

View 1 Replies View Related

Updating Subform From Listbox

Oct 10, 2004

I have a listbox that navigates my form to a specific record based on ClientID

I also have a subform. This form has a field Called clientID which I want to pull all records with the current ClientID.

I can't get my subform to query only the records with the current ClientID in the ClientID field. How can I do this?

View 3 Replies View Related

Getting Data From One Table Based On Current Viewing Record

Jul 30, 2007

Hey all,

I am working on converting someones Paradox Database to Access and making some modifications.

I have a table with people in it and they are linked to a number of interests. But i am struggling to create a query so that on each page of the form for the person i can call the interests and display them on the form as a list...

If anyone could point me in the right direction that woul dbe appreciated!

Give me mysql and a bit of php anyday!! hehe

I am using Access 2007 but i have used access before so i should be able to work my way through instructions for 2003.

thanks

RF

View 4 Replies View Related

Modules & VBA :: Updating Multiple Items In A Listbox

Jan 9, 2014

In my form I have the listFunctions list box set to Multi Select "Extended" in the following code contains a line to execute a query based on the selected items in a listbox. but for some reason instead of only changing the selected items it is changing all items in the listbox. I stepped through the code and it is looping the correct number of times based on the amount selected but is still changing all.

eg.if I select 3 items from the list, it loops through the execute 3 times.but the total 6 items will change.

Code:

Private Sub cmdEdit_Click()
Dim varItm As Variant
Dim sSQL As String
Dim ssSQL As String

[code]...

View 1 Replies View Related

Forms :: List Box Updating Using Another Listbox Value As Header?

Sep 14, 2013

I need to construct a very complex student/coach/time/day Database.

Every student can attend a lesson twice a week, on a particular day and time with a particular coach.

Every coach has his/her own time table (Days available, times available on those days).

So I want this effect on a form:

Day: Monday
Coach: Jack
Time: 10:00

So Coach is dependent on Day, Time is dependent on BOTH Coach and Day.

I got the first one working but I am stuck on the second.

I created a Table for every day of the week (Mon through Friday) and have each coach's name as the "header" of a column, in that column I have the times they are available:

Code:

Jack - Roy
08:00 - 09:00
08:20 - 09:20
08:40 - 09:40

In my form, in the event procedure of the second list box I have the following:

Code:
Select Case [Swimming_Day_1]
Case "Tuesday"
[Time_1].RowSource = "SELECT [Coach_1].Value " & _
"FROM [Tuesday Times] "
End Select

But now when I select for example "Jack" in the "Coach_1" List box, the "Time_1" list box lists 3 entries of "Jack", not "08:00, 08:20, 08:40" respectively.

How can I accomplish the above without having to create a separate Day/Times Table For each and every coach (There are 8 coaches and 5 days, and I want things as easy as possible to update coaches should there come extra or some leave maybe).

View 5 Replies View Related

Forms :: Click Record In Listbox And Combobox Jumps To Same Record?

Aug 25, 2014

I have been looking for days on the net for my listbox problem. It is there and found a few, even on this forum. but when i try the solutions mentioned i am in a total loss and do not know what to change to make it work for me.

I have a form named A/B Retriever with a record source qry input AB Bins Than i have a unbound combobox with row source qry input AB Bins. This populates 8 textboxes with B through I carton boxes, stored in a bin. The user selects a Bin location from the combobox and can put a "x" in a textbox to illustrate that the box is empty. This works perfect.

Underneath the input bin and box part i have 8 listboxes that shows a query that has counted the empty boxes with the corresponding bin location. this also works. but the question from users where, If i click on a, lets say empty B-box at Bin location 12A20, they want the combobox automatically focus on the combobox with the corresponding Bin location. This is a quick way for them to delete a empty box (remove the X).

View 1 Replies View Related

Add New Record Using A Listbox

Apr 4, 2007

I have a mainform where TaxID is used in a combo box to add new records. The problem is not all of my paperwork will have either a SSN or EIN on it to filter the combo.

What I would like to do is use a searchform that has a listbox w/names and TaxID -->This works as I use it to search my records.

Using a copy of this search form I would like to add a new record using TaxId

The code I am trying is

DoCmd.OpenForm "frmPolicyEntry", , , "tblPolicy.[TaxID] = " & lstResults.Column(0), , acDialog

I have tried different variations of this, and can get a new form to load but the TaxId is not updated.

Can someone help me for min?

***EDIT***
I have added an attachment of s stripped down db. I am still having problems trying to understand this, maybe someone could look at help, maybe my form is set up wrong.

View 4 Replies View Related

Updating Record

Feb 21, 2006

Greetings,
I have a form with a subform(sub1) that contains records. Also on the parent form is a subform that contains subtotals of the records on the (sub1) subform. When I add a record to the (sub1) form, I can't get the code to update on the subtotal subform unless I go to another record. what am I missing here?

Thanks!

O

View 3 Replies View Related

Listbox Won't Update When Record Changes?

Mar 20, 2006

Hi there!

Been away from access db's for a couple of years and have suddenly job i have to do, and of course the client wants it finished yesterday :rolleyes:

Anyway, my problem is that i have a simple form with suppier details in it - and a combo box which shows the products that that supplier has. The combo box runs on a custom query object i created that matches the supplierID's. Simple!

But for some reason when i change the supplier record, the combo box doesn't with the new list of products. The dynamic QUERY updates just fine, if i check it, however these results aren't reflected in the listbox.

If i use a subform, then that updates just fine. Alas, not the list box, though.

I must be forgetting something simple! Is there some kind of update event i have to create?

Thanks!

View 2 Replies View Related

Find Record From Listbox

Jul 20, 2006

I've enclosed a screenshot as it tells the story pretty well by istelf.

I would simply like to be able to click any item in the listbox (populated from a query simply showing all records in a table). Once an item is clicked in the listbox, I'd like the form to go to that record (this is to enable quick finding and deleting of records).

I've been playing for a while, and can't figure out how to make Access go to the record that's selected in the listbox.

Thanks for any help.

Steve

View 7 Replies View Related

Updating Same Record With Two Forms

Jun 26, 2006

Dear all,

Is there any way to update the same record from two forms? The requirement is that in a form I have a checkbox. If I select the checkbox, it will open another form, in which I can update some fields which are of the same record. When I tried, it is updating on another record. Is that possible to do so?

i am attaching a sample db . If anyone knows how to do it, please update the sample db or give me advice.

Thanks

View 1 Replies View Related

Updating A Record Using 2 Tables

Apr 25, 2005

I have one table (call it tblMax) which holds a number designating a maximum amount for items. I have a second table (call it tblItem) which holds the items current inventory, along with several other values about the item. Is there a way to reference fields from both of these tables on one form, AND have the record be able to update? I've used a query to bring them all to one form, but the record is not able to update using that method. The tblMax will be used for reference only, after the initial values are entered. I also tried leaving the form's Control Source blank and typing in Control Sources for each field, but was unable to get that to work. TIA.

View 1 Replies View Related

Help With Record Updating Form!?

Jan 26, 2006

Ok so ive built a form that a user can use to enter in data that will update a certain table.

The table has for fields: Email, Password, Active and ID.

In my form ive got rid of the active and ID fields as i want them to update automatically when the user fills in the email and password and hits the submit button on the form.

The only problem im having is getting my head around how i would update my other two fields once the user clicks submit?!

i was thinking that i could simply code the submit button to add the relevant info into the fields eg onclick active = 1 and ID = previous id +1 but im completely lost

Any help or ideas?

View 1 Replies View Related

Updating Record Via Form

Aug 10, 2006

on my form i have a few radio buttons, check boxes, text fields and combo boxes. i am able to change and update all fields except combo boxes. it modifies the wrong table...

combo_table
------------
id value
1 house
2 school
3 work
if on my form the combo box for a specific record shows house selected, the value of 1 (the id from combo_table) should be the value put in the main talbe...if this is changed to option 2, school, the main table should have 2 in that field...

what happens though, is if i change from 1 (house) to 2 (school) combo_table ends up looking like the following:

combo_table
------------
id value
1 house
2 house
3 work

View 4 Replies View Related

Updating Current Record

Dec 4, 2006

I am using and UPDATE Sql statement to update a firld in a form to a table. However, I get the message updating 140 records etc. How can I get the SQL/Macro to simply update teh record I am currently working on?

Beeky

View 1 Replies View Related

Autonumber Not Updating Until End Of Record Set

Feb 2, 2012

I constructed a database in access 2007, when you entered a new record the autonumber would be generated once you started typing in values. I have since upgraded it to an SQL back end and now the autonumber does not update until the recordset is completely entered. This is causing me serious problems with my subforms since the record will not update before I need to go to the subform.

View 1 Replies View Related

Forms :: Go To A Record On SubForm With Listbox

Jun 28, 2014

I have a Listbox that I want to use to go to a record on a subform. I know that it cant be done with the wizard.

The records that I am looking at don't have an ID so I want to look at both a date field [TrainingDate] and a Time Field [TrainingTime]. I have set the querry up and the list gets populated with the correct information. And I have added the following code to the AfterUpdate Event

Code:
DoCmd.SearchForRecord , "", acFirst, "[TrainingDate] = " & Str(Nz(Screen.ActiveControl, 0))

The reason that it has no RecordID is that the records could be imported and that would produce duplicates.

View 1 Replies View Related

How To Refresh Listbox After Delete A Record

Jun 9, 2012

How to refresh listbox after delete a record

My file: [URL] ....

After double click a record on listbox, will be open new form and click DELETE

I don't want to show DELETE on listbox after delete...

View 7 Replies View Related

Combo Box Updating By Selected Record

Feb 24, 2006

Hi all,

I have created a form to enter downtime information using the fields from downtime table (as follows)

tblDowntimes

fldDowntimeID (PK)
DateOccured
MaterialCode
ShiftID (FK)
LineMachineID (FK)
DTCategoryID (FK)
DTReasonID (FK)

However on the form, LineMachine is taken from the tblLineMachine where LineID and MachineID are FKs. This has a large list of machines as one line can have many machines and a machine may appear on more than one line

So on the form, i would like to select the LineMachineID by inserting fldLineID (which would be a combo box) where the user could select which line e.g. Line1 and then the combo box for the LineMachineID would only display the relevant machines for the entered line instead of all the machines for every line.

I managed to achieve this,but I am experiencing a problem where if, in the Line combo box, i choose a different Line e.g. Line2, the LineMachineID does not then display the machines on Line2, but keeps showing the machines for the line I originally selected (Line 1).

How do I get the LineMachineID combo box to update every time a different line is chosen in the LineID combo box?

Any assistance much appreciated!!

thanx all,

Keji

View 3 Replies View Related

Run Time Error Updating Record -- HELP ! Please....

May 11, 2005

I have an orders Form with a subform for products. In the subform the user selects each product by first selecting the product category from a combo box, which filters the query for the second combo where they selects the product. Once this is done, I need the record to up date, but Access gives a run time error 3058: Index or primary cannt contain a null value.



In this case I belive the key field is the product_id form my 'order_detail_table' where this is a shared key.



I've been beating this to death (it's killing me!!) for a couple of weeks now and got nowhere. Maybe someone out there can have a look and see what my obvious mistake is ... (I've attached a cut down version of db with just tables, query and subform)

Thx.
Kev

View 2 Replies View Related

Updating Record (3251 Error)

Aug 17, 2005

Hi, I've tried everything to get this to work with access. I can get it to work with SQL but unfortunately in this case I can't use SQL. Problem is that when I try and update the record, I get an error saying that the update method is not supported or that the lock is incorrect. It's a 3251 error.

Here's the code I'm using:

Dim dbConn2 As ADODB.Connection
Dim dbRst2 As ADODB.Recordset

Set dbConn2 = New ADODB.Connection
dbConn2.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= R:myAccessDB.mdb"

Set dbRst2 = New ADODB.Recordset

dbRst2.CursorLocation = adUseClient
dbRst2.CursorType = adOpenDynamic
dbRst2.LockType = adLockOptimistic

Set dbRst2 = dbConn2.Execute("Select ROAD_ID FROM GIS_MSLINK_ROADID WHERE MSLINK" & " = " & UserForm2.slsn_textbox1.Value)

dbRst2.Fields("ROAD_ID").Value = UserForm2.slsn_textbox2.Value

dbRst2.Close
dbConn2.Close

Set dbRst2 = Nothing
Set dbConn2 = Nothing

View 9 Replies View Related







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