Search results

  1. T

    Filter on subform not working

    Hope this will help. The code on the subforms some wont be applicable as I have had to remove some of the tables etc
  2. T

    Filter on subform not working

    Hi I think I have attached the pictures correctly. The first picture shows SubformA. This is to be filtered using the fropdown menu. The second print screen shows SubformB which is to be filtered using the textbox. SubformA will update the table, as does SubformB. I have put the relvant...
  3. T

    Filter on subform not working

    Thanks for your reply SubformA and subformB have no common fields. so how can I set a filter for the recordset?
  4. T

    Filter on subform not working

    Hi All I hope you can help I have a navigation form which has two subforms on it (ie 2 tabs linking to different forms). I have got aq filter working for one of the forms but not on the other. This is using If IsNull(Me.txtoperationscontract) Then MsgBox "Please type a contract number...
  5. T

    Run time Error2467

    Hi The error description is The expersion you entered refers to an object that is closed or doesn't exist. In response to the docmd.setwarnings. I put that in to try and stop the error box occurring because if you press end on the error box it actual applies the filter as I require.
  6. T

    Run time Error2467

    Hi all I am running this code: DoCmd.SetWarnings False Me.makealterationsubform.Form.Filter = "
  7. T

    Question Add textbox on form with button

    Hi all I have a form which adds in details of components Sometimes I will need to add a number of components What I would like to do is add a new line of the textboxes below the orginal when a button is pressed. In my head I see it working in a similar visual sense to adding multiple...
  8. T

    DLookup multiple criteria

    Hi all I have this code Me.type01.Value = DLookup("Type", "tblDesign", "[Line]='" & Me.Line01.Value & " AND Contract='" & Me.Contract.Value & "'") contract.value is updated when a button is clicked that has a macro in it Can anyone please tell me where this code is going wrongm and also...
  9. T

    Dlookup in control source

    Hi all I know I am doing something wrong and it will be staring me in the face I have a 2 unbound text boxes 1 populates the id number from a table. I want the other to display the first name where this id occurs. I amm currently putting this in the control source of the seconded...
  10. T

    DCount in a table

    How can I then run the query that I want Could do a sql as have the basis but how would I pull column values into the sql. This is what I have: SELECT Count(*) AS Expr1 FROM tblSummary WHERE (((Year([DeliveryDate]))='2014') AND ((Month([DeliveryDate]))='11'));
  11. T

    DCount in a table

    Hi All I hope you can help I have a table that displays the year and month and another field that I want to calculate how many id have that month and year from another table can anyone help please
  12. T

    Count number of records with date

    My apologies I have sorted out the query and it is working. How can I apply this into vba? thanks for your help
  13. T

    Count number of records with date

    Hi And what would be the best way in which to do that and then apply it?
  14. T

    Count number of records with date

    Hi all I have a table which specifies the delivery date I have a from that allows you to choose a year and a month. I have an unbound textbox which I wan to display the count I want to be able to count all the records from a table with the year and month specified in the comboboxes and...
  15. T

    sql with textbox

    This is the code I currently have. It is not allowing me to update the second column. When I tae this line out it works how it is supposed to Dim ContractSQl As String ContractSQl = "UPDATE tblContracts " & _ "SET Order='" & Me.conOrder.Value & "' " & _...
  16. T

    sql with textbox

    Hi One record that is specified in another column
  17. T

    sql with textbox

    Hi all I have an sql which is used to update a table I am wanting to update the column1 with the value of an unbound texbox on a form can anyone help?
  18. T

    Update table from unbound form

    Also I have looked through the link you posted about update queries, how would I put this into a vba code?
  19. T

    Update table from unbound form

    No I am unable to load the data that matches the id number. then I want to alter the unbound textboes that have found data from the table and update it
  20. T

    Update table from unbound form

    Thanks for the reply. The reason why not is because I want the user to click a button to save the information, also I want this form to update other fields in other tables eventually
Back
Top Bottom