Search results

  1. L

    Retrieve SQL Results

    I'm trying to retrieve the value in the 'Category' field of the 'Sales Tax Table' table with a VBA SQL statement. The SQL statement matches the 'Name_Choose' (textbox) with the value in the field 'Company Name' in the 'Sales Tax Table' table. I need to place this value in 'Category_Name'...
  2. L

    Retrieve SQL Results

    No, [Sales Tax Table] is a table.
  3. L

    Retrieve SQL Results

    Run=time error '3061' Too few parameters, Expected 1.
  4. L

    Retrieve SQL Results

    theDBguy, Did I miss something ? This did not work. Dim strSQL As String Dim rs As DAO.Recordset strSQL = "SELECT [Sales Tax Table].[Category_Name] FROM [Sales Tax Table] WHERE [Company Name] = '" & Me.Name_Choose & "'" Set rs = CurrentDb.OpenRecordset(strSQL, dbOpenSnapshot)
  5. L

    Retrieve SQL Results

    How can I retrieve the results of the below SQL statement in VBA ? Dim strSQL As String strSQL = "SELECT [Sales Tax Table].[Category_Name] FROM [Sales Tax Table] WHERE [Company Name] = '" & Me.Name_Choose & "'"
  6. L

    Sharing Tables With Two (2) Different Databases

    Ridders, Great, that what I need. How can I achieve this ? Are there any examples ? What code is needed ?
  7. L

    Sharing Tables With Two (2) Different Databases

    Is it possible to share tables with two (2) different databases ? To clarify . . . I have a database that collects data into tables (via form) that are needed to produce reports by a different database.
  8. L

    Conditional Formatting (AfterUpdate)

    Wayne/Arnelgp, It works . . . Thanks to the both of you ! ! !
  9. L

    Conditional Formatting (AfterUpdate)

    Arnelgp, Got it . . . Thanks ! ! !
  10. L

    Conditional Formatting (AfterUpdate)

    Arnelgp, You still uploaded the wrong database . . . Nothing changed.
  11. L

    Conditional Formatting (AfterUpdate)

    Arnelgp, You're right . . . I fixed this by adding Me.Bill_Due_Date.ForeColor = 0 in BeforeUpdate. Also, did you load the wrong version for your solution ? The textbox does not change the color to red.
  12. L

    Conditional Formatting (AfterUpdate)

    Arnelgp, Wayne solution worked. Did I miss something, what were you referring to ?
  13. L

    Conditional Formatting (AfterUpdate)

    Wayne, That worked . . . Thanks ! ! !
  14. L

    Conditional Formatting (AfterUpdate)

    Wayne, This did not work either. I want the value in 'Bill Due Date' to change to red after it's been updated to a new date. I'm trying to accomplish this is 'afterupdate'. The value is changed after clicking on the 'Add Record' button.
  15. L

    Conditional Formatting (AfterUpdate)

    Wayne, This did not work (see attachment). I want the value in 'Bill Due Date' to change to red afterupdate (i.e. 'Add Record').
  16. L

    Conditional Formatting (AfterUpdate)

    Is it possible to change the color (to red) of text in a textbox after it's update. I don't see how to do this in the 'New Formatting Rule' in 'Conditional Formatting' of the 'Format' section.
  17. L

    Retrieve Result From SQL

    Pat Hartman, One more question . . . why am I getting the 'This Recordset is not updateable.' error when trying to clear the textboxes in the form ? The error appears for both "" and Null. Me.[Bill_Due_Date] = "" Me.[LastPaid] = "" Or Me.[Bill_Due_Date] = Null Me.[LastPaid] = Null
  18. L

    Retrieve Result From SQL

    Pat Hartman, Thank you very much ! ! ! I'll try what you said.
  19. L

    Retrieve Result From SQL

    Pat Hartman, I can't select a new date for 'NextPaymentDate'. I want to be able to modify the 'NextPaymentDate' (from 'Date Picker'), then add this new record (with 'Bill_Name' and 'Last_Paid') to the 'Bills' table.
  20. L

    Retrieve Result From SQL

    Arnelgp, I had to modify your code a little bit (missing '&' - see below). Still, the code does not put he the 'Last_Paid' date in the 'Textbox'. Also, the original 'NextPaymentDate' and 'Last_Paid' dates are not put in their textboxes. What I'm trying to do is load the these textboxes with...
Back
Top Bottom