I've a form with a combo box "OrderNumber" (to allow the user to select the correct order) and a text box "Date" which displays the date of the order selected.
The problem is that I don't know how to synchronize the boxes.
I know the procedure to do it with two combo-boxes (cmboDate=Null & cboDate.Requery in the after update property of the cbo "Order Number"), but is it possible that when I change the order selected in the combo-box, the text box shows the correct date?
Thanks for your help!
Ok, here's my dilemna. I'm new to Access and have been struggling to learn this all day long.
I have mastered how to syncrhonize 2 combo boxes, but am having trouble for 3. I would like to do it using Events/VB Code (I guess that's what you'd call it)
Say I have a Car Manufacturer, Model, and am looking for a particular part in the database.
I want a form with combo boxes that has a list for "Manufacturer" (Pkey = ManufacturerID) which is related to "Model" (PKey = ModelID) which is related to "Part" (Pkey = PartID).
The first combo box takes info from the Manufacturer table and gives me some choices, I want to pick one and have it restrict it to the available Models for that Manufacturer. Then I choose the model and the last combo box restricts me to parts available for that Manufacturer/Model.
Is there a way to do this with the "AfterUpdate()" event? Need more details, or anything? Please help, this is making me go insane.
HELP PLEASE. I'm fairly new to access and would like to synchronize three combo boxes. My table are; tblDepartments, tblDivisions, tblTitles, tblDeptDiv, and tblDivClass. The last two tables are junction tables because I have many to many relationships one department can be related to many divisions or a division to many departments and the same goes for divisions and titles. I can manage to synchronize two combo boxes.
I am new ussing access already with issues surprice no.I have four tables Section, Ducument, Description, Origin.I nees to Synchronize four Combo boxes, my first combo box code work fine
Private Sub cboSection_AfterUpdate() Me.cboDocument.RowSource = "SELECT DocumentName FROM" & _ " [Document] WHERE SectionID = " & Me.cboSection & _ " ORDER BY DocumentName" Me.cboDocument.Enabled = True End Sub
When I select a category from my first combo box the secon combo box get populated with the correct Data.But when I select the second box the third combo does not get populated with any data here is my code for the second combo box.
Private Sub cboDocument_AfterUpdate() Me.cboDescription.RowSource = "SELECT DescriptionName FROM" & _ " [Description] WHERE DocumentID = " & Me.cboDocument & _ " ORDER BY DescriptionName"
I want to make a synchronize function in access. I have two methodes, and i dont know what is best, since i have no experinece with synchronize functions.
Its about meeting information.
An employee has a meeting. He creates his meeting in the database. This way his meeting id is reserved. The employee goes to a client. Takes his laptop with the program. Fills in the information. Goes back to his company. push the botton, and the files from his latop synchronize with the main database under the reserved meeting id.
The employee comes back: 6----1 6----2 6----3 7----1 7----2 7----3 8----1 8----2 8----3
MeetinID and Action ID are PK.
Now the question. I can also create a unique field for the action table. So that actionID and MeetingID wil be no long PK, just one field that identifies. But for the synchronize function, is it harder to program? Or does it make no difference? can you simpy add them ? or is it better to keep using the 2 pks.
Is it possible to synchronize to ALL replicas using a command button in one shot from the Design Master?? I've read various posts, and it doesn't sound like anybody has found a solution for this. Found solutions for doing it one at a time, but was wondering if anybody has found a way to synchronize to all replicas without any user interaction other than hitting a button.
I was wondering (once again :D) is there a way to synchronize splitted and replicated database programmatically from users front end when they close database? I've "Data" & "Interface" databases both in users pc and in server as well.
If this sounds a bit odd, please correct me? Is there a point add back end database to users pc as well or only front end database, which is linked to back end database tables in server?
I want code to synchronize 2 or more databases. The databases are the same, but in different media,like in mobile flash drive,backup drive and main system
I appologise but I am useless with Access but am trying to learn.
I have a datababse that we use to log calls onto, There are five members of our team and each member has thier own replica of the datababse. At the end of each day we have to re-sync our replicas to the design master.
It would be nice if we could put a button on the form we use to do the synchronization for us. Is this possible and how do you do it? bearing in mind that I am not too good with access so I need laymans terms.
I am getting the following error when Synchronizing Now for Replicated database. The total database size is only 22 megs (contains reports and forms). This just started happening recently, otherwise it was fine before. My machine is running WinXP Pro SP2 (with latest service pacs) on an AMD DualCore 3800 with 1gig RAM. Once you hit the OK it continues and competes successfully (at least it look OK). Any ideas what this could be or to eliminate it popping up? I run the database with minimum of programs at the same time.
Here are some background . My company got a access file in a network drive.The data entry simply open the file in the network drive.But once the data has increased (~400mb) sudddendly,all process slow down. Like search , using report etc.Is there any method to imporive the situation?Some guys suggest me to copy the data file to the desktop and sync them.Can it it work?IF works,how to do that?
I'm looking for a way to have a text box auto fill based on the selection of a combo box on the same form. I cannot use the method i find all over the internet of using multiple columns in the combo box and basing the text box on that because the combo box already has multiple columns being used to determine its own possibilities and other combo box possibilities.
I would really just like the text box to work like this, but im still kinda inexperienced in VBA...
If combo box is "F004-001", then text box is "237" If combo box is "F004-003", then text box is "280"
I know how to add in an "after update" thing, but i do not know how to do If/then statements.
I have been creating a form, based on only one table. Here I am displaying data as text boxes and subfrom from the same table. At the beginning, I was interested in controlling the display of the data according to the combo box (in this case is the PO number). Now, I would like to add another combox box which is the year (I have a column with the date, and also I have a column that shows only the years digits in my table) Also, I have a subform that display the data from the same table specifics records that I want. It means that I want to pick the year first, and then in the combox box of po number shows only option of that year, and hence the text boxes and subforms change accordingly to the two combox boxes.
I have a combo box on a form with three values, when I select one of the values I want a text box to show a corresponding value.
The combo box has three values for different types of memberships; under18, over60, and standard, these have different prices. So what I want is for when one of the values is selected the text box will show the price.
Any help on how to do this? The database is below.
Is there a way whereby I, or another user, can amend the ‘TOP’ value of a query via a Combo or Text box entry on a form? I have searched this Forum for a solution to this very problem but have had no success. I understand how to achieve this via the queries ‘SQL’ view but cant figure out a way to do it by the way that I have already described!!
Your advice or a ‘pointer’ in the right direction would be extremely well received.
I have a text box on a form that is bound to a field in a table that is populated by a combo box coded into the table whose data source is a select query.
Everything looks fine in the table, but when I display the data on the form it is displaying a different field of the source select query than the one displayed on the table.
Field "City" is connected to a combo box and field "country" to a textbox on the form.
I would like the user to select a city from the combo box. When this is done the textbox linked to the country field should automatically update to show the correct country. This should update without user intervention.
I would find it better to have the text box look up a value list rather than use a table for its source. the form is being used as data entry. The combobox linked to field "city" is also a value list.
Aaaargh! It's a couple of years since I got my hands dirty in Access and I seem to have forgotten more than I thought! :( I have a simple database which includes tables STOPS (stopID, stop name, routeID, Cost band), JOURNEY(CustID, routeID, stopID), and ROUTES (routeID, Route name, Bus co). I have a main form with the customer number on linking to a sub-form on which the user will select the route from a combo box and then the stop from a combo box. All works fine but I want to filter the stop combo box to show only stops on the route already chosen. I've done similar before but I have tried all sorts and failed to get anything to work. Any help appreciated.
I have a combo box that I use a barcode scanner with. I scan the barcode and it finds the product using the code below:
Private Sub cmbBarCode_Click() ' ADD A TRANSACTION AUTOMATICALLY
Dim RS As ADODB.Recordset Set RS = New ADODB.Recordset RS.Open "SELECT * from tblTransactions", Application.CurrentProject.Connection, adOpenStatic, adLockOptimistic RS.AddNew RS!OrderID = ID RS!Barcode = cmbBarcode.Column(0) RS!Manufacturer = cmbBarcode.Column(1) RS!ProductName = cmbBarcode.Column(2) RS!QuantitySold = -1 RS!Cost = cmbBarcode.Column(4) RS.Update RS.Close Set RS = Nothing lstTransactions.Requery
End Sub
What I need to happen is all the above but after it has finished or before it starts it needs to clear the contents of the box. So the barcode is entered it runs the above script and then removes the barcode from the combo box, so I am ready to scan the next barcode.
I am trying to set the result of a query as the default value for a text or combo box. I have tried setting the query as the default value in the box's property. I have also tried doing it in VB. The code looks like this
Dim SQL AS String
SQL = "SELECT Address FROM Table1 WHERE Name = Forms!Main_frm!name_lbx.Value;"
Forms!Address_frm!address_cbx.DefaultValue = SQL
I have also tried
Dim SQL AS String
SQL = DoCmd.OpenQuery([update address_qry])
Forms!Address_frm!address_cbx.Value = SQL
Where update address_qry is the same as the above.
I keep both forms. I know how to do it by setting the queries as values in a list box, then transfering the values to the text or combo boxes. But I was hoping there was an easier way.
I am trying to set the result of a query as the default value for a text or combo box. I have tried setting the query as the default value in the box's property. I have also tried doing it in VB. The code looks like this
Dim SQL AS String
SQL = "SELECT Address FROM Table1 WHERE Name = Forms!Main_frm!name_lbx.Value;"
Forms!Address_frm!address_cbx.DefaultValue = SQL
I have also tried
Dim SQL AS String
SQL = DoCmd.OpenQuery([update address_qry])
Forms!Address_frm!address_cbx.Value = SQL Where update address_qry is the same as the above.
I keep both forms open. I know how to do it by setting the queries as values in a list box, then transfering the values to the text or combo boxes. But I was hoping there was an easier way.
I would like to know how can i reference a combo box to the value of a text box on the form it is for a purchasing system.
if i select product one i only want the the order quantity for that item to show and the same with the price field as all the reorder levels and cost information is stored in a table. i have created queries only selecting the product code and reorder quantity and the product code and the cost price.
I have searched and looked for this throughout the forum but can't find it. I have a simple text box which I want to populate based on a combo box. The combo needs to display the table's field name and the text box needs to display the record. Is this possible? Cheers, Rene