Search results

  1. G37Sam

    Any Formula1 fans on here?

    Finally!!! Luckily, the Yas Marina Circuit is just a 45 min drive away for me and I've been scrutineering for the past two years! So I get to watch in the teams garage while I supervise their work on the cars :) Here are the pictures I took in 2010...
  2. G37Sam

    Cost calculated due to inflation

    Assume you have a monthly inflation rate of 1%. You started with 1,000 in the first month. Then your payment after 5 months would be 1,000 * (1.01) ^ 5 How do you plan on using this information in your database though?
  3. G37Sam

    How Often Is Now() Calculated During a Query?

    Even if you do loop, you would need a really slow processor from the 80's to show a difference in the time values :)
  4. G37Sam

    generate SQL insert statements from MS access

    Yes, you can use VBA code in a module like this Sub SQLadd() Dim strSQL as string strSQL = "INSERT INTO ..." 'insert your SQL statement here as you have done above CurrentDB.execute strSQL End Sub Note that numbers don't require quotes, strings require single quotes and dates require hash (#)...
  5. G37Sam

    A way to make jump-to by typing enabled, but data editing disabled?

    Instead of locking every control on the form, try me.allowedits = false This will ban users from editing records in the form.
  6. G37Sam

    Bringing a button to the Foreground?

    Try: DoCmd.RunCommand acCmdBringToFront
  7. G37Sam

    User Level Security : Sending user name to another database

    And that is why you should have a front-end / back-end environment. The back-end database(s) store(s) all the data, the front-end is sort of like the hot receptionist that's smiling all the time. The front-end is linked to all the tables you'd need behind the scenes.
  8. G37Sam

    Security through Queries

    1) You will a need a Permissions Table, that's where you store user permissions by username. 2) You can get the current username using the following: Environ("Username") 3) You will need to use the dlookup() function to lookup what permissions the current user has from the user permissions...
  9. G37Sam

    User Level Security : Sending user name to another database

    You can use Shell command to open another database. I would do it all in one DB though and have add/edit/delete privileges linked the logged in user.
  10. G37Sam

    Run an Update Query based on the most recent record

    One way of doing it would be to use DAO to lookup the most recent record for ClientA in your archive. I made up names for your tables & fields for demonstration, change them to your own. Dim rs1 as DAO.recordset set rs1 = currentdb.openrecordset("Select * from ClientsArchive where client='" &...
  11. G37Sam

    Database design

    Aaah the good old days of Material Science and Alloys. Your structure should look this: Let me know if I got it wrong
  12. G37Sam

    Run an Update Query based on the most recent record

    How do you choose which records go from Archive to Original table? Do you have a timestamp on your records?
  13. G37Sam

    Subquery on calculated field

    Ok I get the picture now, not sure you can join tables on expressions however I found a way around it. Let me know if it does the trick for you:
  14. G37Sam

    DSUM and functions

    Glad I could help :) Cheers, Sam
  15. G37Sam

    DSUM and functions

    Try changing: [TransactionDate] between #01/01/2012# and #31/01/2012# To Month([TransactionDate]) = 1 Then you can have that 1 programmed later on by linking it to a combo etc..
  16. G37Sam

    Question Field Default value in double quotes

    And can these values be changed and permanently stored easily in runtime? Every DB I build has a table just for tiny bits of data like this. Makes life a lot easier.
  17. G37Sam

    password

    You're basically asking Access to count the records, if they're equal to zero (aka no records) then hide the subform.
  18. G37Sam

    Subquery on calculated field

    Can you upload what you have done so far? What you're trying to do maybe easier with VBA
  19. G37Sam

    Team Appointments Planner

    Tell you what, share the Excel sheet and I might come up with something along its lines.
  20. G37Sam

    Question Field Default value in double quotes

    If you want that value to be editable, it's better store the value in a table and have it looked up on form's Before Insert event.
Back
Top Bottom