Search results

  1. M

    DSum on a Form from Date - I hate dates :-(

    Hello, I'm looking to sum restaurant covers from a day - based upon the date on my form which is formatted dd/mm/yyyy I'm trying to use: =DSUM("Covers", "tbl_Net_RestaurantBookings", "#" & Format([CheckIn], "dd/mm/yyyy") & "#" = [Forms]![frmBackGround]![txtLocalSystemDate]) LocalSystemDate =...
  2. M

    Query Field Name based upon Text Box value

    Hello, I have created a grid using a table Fields are DinnerTable, 18:00, 18:15, 18:30, 18:45 etc On a form I have a textbox named txtGrid1 and a button I'm looking to run a query where if the textbox value was 18:30 then my query fields would be 'DinnerTable' and '18:30' - however I cannot...
  3. M

    Solved Task Scheduler Automation

    Hello, I am trying to build an automated task scheduler for my system where every day it will run a report at the selected time each day, or run some process. Currently I have a few small access databases running in windows task scheduler that open, run whatever then close - works well...
  4. M

    Run SQL in VBA

    Hello, I am trying to update a field in a table, the field to update is variable based upon what the user selects on a form, but the field to update is created in a textbox - its a mixture of the day of the week selected and the name of the field to update, so at the moment I am trying to...
  5. M

    Solved Total Sum? on a Query from Other Queries

    Hello, I have created a query from 7 other queries; each one sums the data from a day by product and then it shows it on a 8th query where all the products are displayed with the daily\weekly\date periods selected from a form. - Not really explaining it well I know, its like a Crosstab query...
  6. M

    Link to Old .MDB from .ACCDB

    Hey All, I am trying to link to my data in a very old system (Total Control Till System) to my accdb database. I used to be able to use Windows 7 and MS Access 2007, however I am looking to use MS Access on Office 365 as I use for other databases as my old computer has died. I can probably...
  7. M

    Set Focus on ComboBox on Subform

    Hello, Please can you help, I feel like I am missing something simple here. I am trying to click a button on a main form and then the subform is made visible and a combobox gets the focus on the subform to type in for a search. I'm using the following code, but what am I missing please...
  8. M

    Solved Annoying Write Conflict when using SQL Update

    Hi, I have a continuous form that I use to filter out checklist items, I am looking to change my category number for each category\heading when I update one of the textboxes on my form, so all other textboxes with the same heading will be the same, I am using the following code however I then...
  9. M

    Populate a Combobox from another forms Textbox

    Hello, I'm trying to populate the first\default value of a Combo Box when I make a form visible with the value of a Textbox on another form. The Textbox value will be same as one of the 6 in the Combo Box. The Combo Box is just to allow the user to change the department and will be picked...
  10. M

    Is there a limit to VBA line for filter?

    Hello, I'm trying to filter and print a report using a button on a form, I can get it to work, however I seem to be a little bit short for my ideal filter. I can get the following to work (with 15 criteria): DoCmd.OpenReport "rptBuyingList", acViewReport, , "STOCK_CAT =...
  11. M

    INSERT INTO with Date Format MMMM YYYY

    Hey All, I'm trying to use an insert into statement to log an action in my system, I am looking to show the record with Printed on MMMM YYYY, however the date format is the issue at the end (I always seem to have an issue with date format, I just cannot get it. Please can you tell me what my...
  12. M

    Solved Those Dreaded Dates Again

    Hey All, I'm trying to filter a from using a few different combo boxes, one of them is to filter records for a date, I'm using the following code but I keep getting the error "Run Time Error 3709. The search key was not found for any record." If Nz(Me.cbxSystemDate, "") <> "" Then...
  13. M

    Cannot get VBA to put data in to a textbox after hiding

    Hello, I have a form and a subform which has a textbox called tctManagerDiary, when I click on a button to hide the subform then click on a button to show the subform the data will not append to the textbox. The code I am trying is Me!subfrmDiary.Form.txtManagerDiary = DLookup("ManagerDiary"...
  14. M

    Using DLookup to put Value in to a Textbox

    Hello, I am looking to use DLookup to put values in to textboxes using VBA, can I do something like this please: Me!subfrmDiary.txtManagerDiary.Value = DLookup("ManagerDiary", "tbl_Net_Diary", "TheDate = Forms.frmBackground.txtLocalSystemDate") I have also tried...
  15. M

    Environ("ComputerName")

    Hey All, Can Environ('ComputerName') go in to a SQL Statement? I'm looking to do: DoCmd.RunSQL "INSERT INTO tbl_Net_UserLog(UserName, Action, Computer) SELECT Forms!frmBackground!txtUserName, 'User Logged Off', Environ('ComputerName')" Thanks, Malcolm
  16. M

    Two Crosstab Queries Combined by Sum in to One Query

    Hey All, I've created 2 crosstab queries and I need to combine them in to one query to give me correct values Eg: Table 1 record 1 total is 100.00 and Table 2 record total is -25.00, I need to sum them together to give me a query which shows 75.00. I am looking at a Union Query to do this, but...
  17. M

    Solved Filter Subform by ComboBox

    Hello, I have a table that logs all my users activities\changes etc and I would like to be able to filter by Employee or Action but I cannot quite get this right. I have my combobox grouped so I can see all my users but when I filter by a user I cannot see the whole table unfiltered - how can...
  18. M

    Solved RunSQL Add a Week, Month, Quarter etc

    Hello, I'm trying to update my table with a button on a form after a procedure has run to show the next date due. So it could be Weekly, Monthly, Quarterly etc. I have used the following which works On Update but not with Run SQL: If [Frequency] = "Monthly" Then NextDate = Null [NextDate] =...
  19. M

    RunSQL store 2 lines in table (vbCrLf)

    Hi, I am trying to use RunSQL update and I want to use 2 lines for 2 sentences to store. I am trying to use vbCrLf, can I use this in the SQL Line? (eg & vbCrLf &) This works fine is MgsBox etc. If not is there another way I can do this please? Thank you DoCmd.RunSQL "UPDATE...
  20. M

    Weekly Test of Devices Tracking

    Hello, Part of my database is for tracking testing of devices, we test one device each week and record the test date. I am looking to do 2 things, but I cannot think how to do them: Device 1 16/04/2022 Device 2 23/04/2022 Device 3 Device 4 1. I want to show on my form the next device...
Back
Top Bottom