Search results

  1. B

    diary filter not returning correctly filtered records

    Hi, I have created a piece of code that filters a sub form of diary records using criteria the user has selected or entered. It was working fine when I made it a month or so ago and now is seems to be returning incorrectly filtered records, for example, I enter 2 dates to return all diary...
  2. B

    Code to check the contents of a field in a table where another field = something

    HI I am trying create some code that checks if the contents of the status field in a table is "Authorised" where the ID = something specific for multiple records. If all records witht the specific ID are "Authorised" Then generate a new record in another table. I know it's poorly explained but...
  3. B

    object invalid or no longer set; code works fine when I run it through an sql query

    I am trying to run this update query through vba and when it goes to run it gives me the error "Object invalid or no longer set" yet when I copy the code and push it through the sql query window it works fine? Any Ideas? Here's the update query; dbs.Execute ("UPDATE tbl_CapexStaff SET...
  4. B

    insert statment not saving data to tables

    I am trying to create a form in which users can save new supplier data to a database. I am using two insert statements which insert similar data in to two similar tables. The insert statements appear to have no problems and no errors are produced upon execution yet the new data doesn't save into...
  5. B

    Requery a subform from another form

    I have a subform in a tab within a mainform. Within the tab there is a button to open a form to delete/add data to the subform. So upon closing this pop up form I want to update the subform to show what has been deleted or added, I have tried the various things to requery the subform but none of...
  6. B

    Delete records from a table using controls on a subform

    I have a sub form that allows users to add staff to a project team, once added it populates a table which updates the subform showing the selected employee. I am trying to enable a delete function that allows users to remove an employee from the project team in the subform showing selected...
  7. B

    Unknown problem with insert statement

    I have a sub form with staff records on it within a main form. I am trying to allow the user to select a record from the sub form and add it to a table, here is my code which, to me, looks correct. However it gives me an error saying "Syntax error in INSERT INTO" Private Sub Command3_Click()...
  8. B

    Filter data in a subform

    I have a subform in a form that displays all members of staffs Name and employee no. I am trying to find a way to search the subform on the main form it's on using textboxes to filter data, here is the code I have that searches the employee no. Private Sub Command178_Click() Dim dbs As...
  9. B

    Filter diary data using two dates in vba

    I have a sub form dragged into a main form that shows all existing diary entries. I have already got code for various different filters but I am struggling to wrap my head around this one. Just want the user to input two dates and then the sub form to show all the diary entries between those 2...
  10. B

    form to edit a record, when I open a record the combo boxes do not populate?

    I have a data entry form that is also used for editing exsisting records, upon the opening of a record the form populates with all the data of the record apart from what is previously selected in combo boxes, so I need to find a way to re-populate those comboboxes Many thanks in advance :)
  11. B

    Restrict user input in a textbox depending on what iption the user has selected

    I am building a form in access and I am trying to find a way where user input isn't possible in the associated textbox when "No" from on option box is selected, I understand that I might have to use VBA, but I am very inexperienced with it so any help and ideas will be greatly appreciated, many...
Top Bottom