Search results

  1. G37Sam

    password

    Its quicker & easier to use the dlookup() function in your case Private Sub cmdOK_Click() If dlookup("count(*)","UserT","password= '" & CStr(textpw) & "'") = 0 then MsgBox "Sorry, Your Password is incorrect." Else DoCmd.Close acForm, "PasswordaddF", acNosave DoCmd.OpenForm...
  2. G37Sam

    Remove records with 0 value

    Before going into the details of your code, I spotted the following cause for errors: wb = "F:\MyDoc\Weekly MI Automation\" & sTeamRegionName & Left(Date, 2) & Mid(Date, 4, 2) & Right(Date, 4) & "_" & Left(Time, 2) & Mid(Time, 4, 2) & ".xlsx" Left, Mid & Right are used for string operations...
  3. G37Sam

    Calculating check digit - no MOD in Access

    Not sure this function would return anything though :p
  4. G37Sam

    Append query VBA?

    Internet cookie??? If I ever come down to Johannesburg you're buying me a beer! haha Glad I could :)
  5. G37Sam

    Append query VBA?

    Something like this? Dim i As Integer, iPrevious As Integer, strNames As String, tempName As String, UC As Integer, LineNum As String, Qstn As String, AF As String, PP As String, pubD As String, CycleNum As Integer, Dassign As String, suspDate As String, Crit As Integer, assignby As String, tb...
  6. G37Sam

    Append query VBA?

    Great! Make it a habit to not use spaces in names.
  7. G37Sam

    New to Access 2010

    Post up man, we love database issues! What's troubling you?
  8. G37Sam

    Append query VBA?

    Tell me about it, I studied Mechanical Engineering but always worked on DB development on the side. Got a soft spot for it. You're gonna love it. The best thing you can do now to debug, is to debug.print your sql statement in the immediate window to see how it looks like. Debug.print "INSERT...
  9. G37Sam

    Append query VBA?

    You missed a few & sign here: tempName & "', CycleNum,
  10. G37Sam

    Append query VBA?

    Pop a cold beer open brother, it's going to be a long night haha
  11. G37Sam

    World of expressions!

    If you insist: maxNumber = DLookup("max(mid(codes,3))", "table3") + 1
  12. G37Sam

    Append query VBA?

    Yes, here's more on how INSERT INTO works http://www.w3schools.com/sql/sql_insert.asp
  13. G37Sam

    Append query VBA?

    Well now that you have more than one field, you're going to have to mention to which field every piece of data goes "INSERT INTO tblActiveMaster(field1,field2,field3) Values ('" & tempName & "'," & UC & "," & LineNum & ")" Remember, strings need to be wrapped with single quotes and dates have...
  14. G37Sam

    New Member from Nigeria

    Welcome! You'll get all the support you need on here. Please don't ask for our bank account numbers to transfer inherited money though haha
  15. G37Sam

    Append query VBA?

    Only if you're moving other data along with the Names
  16. G37Sam

    setting up a database

    Do you just want to do a one time import? Or do you want to have the excel sheet linked to your table so that changes in your excel sheet are reflected in your access table? I recommend against the latter, unless you have no control over it. Both can be done from the External Data tab =>...
  17. G37Sam

    Append query VBA?

    Yeah I'm sorry I lead you into a longer route with the whole array business. After I started working on it I figured there was an even easier way, which was the one I posted. You just need to replace "column6" and table1 & table2 with your actual field and table names that's all :)
  18. G37Sam

    Form Validation Problem

    If you have a male entering his number of pregnancies then you have a bigger problem :D
  19. G37Sam

    setting up a database

    First you have to link form to a table => Use record source property of the form Then you link your fields using the fields control source
  20. G37Sam

    setting up a database

    Can you share the DB with us to troubleshoot it?
Back
Top Bottom