Search results

  1. B

    Handling Prohibited Characters in an SQL statement

    Thankyou again for your input, I must have put the quotes in the wrong place! I can format the date and time strings earlier in the code at initial capture, using the octothorpe?
  2. B

    Handling Prohibited Characters in an SQL statement

    Thankyou for your suggestion but this captured the string name in the record. i.e. '& strHistory &' here is the actual code: sql = "INSERT INTO tblHistory ([Date],[time], UserAdd,History, ProjectID) VALUES ( " & dDate & ", " & tTime & "," & blnUserNote & "," & strHistory & "," & strProjectID &...
  3. B

    Handling Prohibited Characters in an SQL statement

    thankyou, I will try that
  4. B

    Handling Prohibited Characters in an SQL statement

    Hi, I am using an SQL statement to insert a 'User Notes' string into a record in a table. However, if the strings contains a (; semicolon) or (' appostraphe) it messes up the SQL. I put this into the onKeypress event to try to capture/combat it.. If KeyAscii = 59 Then MsgBox "Prohibited...
  5. B

    Handling NULL

    Thank you...
  6. B

    Handling NULL

    Hi I have a simple form with a single unbound text box which captures a 'user note' string and theoreticaly could be null when the command button 'on click' is fired i have put the code: If Me.Text1 = Null Then GoTo cont: ' ' ' ' more code here! ' ' ' cont: MsgBox "No User Note Entered...
  7. B

    simple Y/N answer required for SQL troubleshoot

    had one of those 'cant see wood for trees' moments!!!
  8. B

    simple Y/N answer required for SQL troubleshoot

    Thank you once again RG!
  9. B

    simple Y/N answer required for SQL troubleshoot

    Hi, I am trying to use an 'INSERT INTO' sql statement to write values to a table. I sucessfully used this statment in another part of my database to write a new record. I have copied the code and substituted the values, fields and relavent strings, but now i am getting a syntax error. The...
  10. B

    suppressing dialog boxes - on append SQL

    thanks Bob... will do!
  11. B

    suppressing dialog boxes - on append SQL

    thankyou for the hint: syntax is : DoCmd.SetWarnings (off) thanks again...
  12. B

    suppressing dialog boxes - on append SQL

    I have just created an append SQL string that adds a new record, sql = "INSERT INTO tblAncilleries ( ProductID, PartNumber, ProductDescription ) VALUES ( " & strProductID & "," & strPartNumber & ", " & strDescription & " );" DoCmd.RunSQL sql How do I suppres the dialog box - see jpg? Thanks
  13. B

    SLQ troubleshooting needed...

    thank you for a fresh way of thinking and helping me solve this..!!!
  14. B

    SLQ troubleshooting needed...

    thankyou will try it out...
  15. B

    if code help with greying out

    copy and paste all your 'if statements' into the 'on current' event
  16. B

    SLQ troubleshooting needed...

    I am trying write to a table the resuts of a selection from a combo box using the following SQL. can anybody please help me with the correct syntax for this as I cannot get it working, and it's throwing up a syntax error. Thanks Dim sql As String Dim strPartNumber As String Dim...
  17. B

    sort by headers - question

    I found a sample database that allows you to resize on the fly... not yet tried it out yet... http://www.access-programmers.co.uk/forums/showthread.php?t=112753 will try to implement this when i get time...
  18. B

    Combo box to populate a table

    Hi I have a form with a subform, the subform is in datasheet format. How can I populate the underlying table of the subform with the data selected from the combo box on the main form? basically each selection from the combo writes a new record to the subforms table. I can capture the data...
  19. B

    MainForm/SubForm 'linkcriteria' question

    Thank you..
  20. B

    MainForm/SubForm 'linkcriteria' question

    Hi, I want to open a subform programatically with a 'linkcriteria' filter. However, What i am experiencing is just the subform opening without the main form. How can I open the subform on the appropriate record and the mainform as well, as one?? Thanks
Back
Top Bottom