Search results

  1. S

    SLQ syntax error

    See, I knew I did something stupid. Seems to be partially working. Thanks alot for your time!
  2. S

    SLQ syntax error

    Alright that worked, but now I have a new error. Run time 2342 - a RUNSQL action requires an argument consisting of an SQL statement. strSQL2 = " SELECT (([tblReservations_1].[DateOutReq]>[tblReservations].[DateInReq]) Or " & _ "...
  3. S

    SLQ syntax error

    Hi All, I have an SQL statement that keeps throwing a runtime 3075 error. I am sure I am missing something dumb, but if oyu wouldn't mind taking a look it would be much appreciated. "SELECT (([tblReservations_1].[DateOutReq]>[tblReservations].[DateInReq]) Or " & _...
  4. S

    Text box does not save contents to table or display in listbox

    Did you ever figure this out? I was seeing an error on this line: & QUOTE & Me.txtLicense & QUOTE & ")" 'and insert new record into tblReservations till I deleted the comment on the end of this line: & QUOTE & Me.TxtNotes & QUOTE & ")", "" _
  5. S

    Text box does not save contents to table or display in listbox

    CurrentDb.Execute "INSERT INTO tblAppointments (ApptID, ApptSubject, ApptLocation, ApptStart, ApptEnd, ApptNotes, LicensePlateNunber) VALUES (" _ Spelling
  6. S

    Text box does not save contents to table or display in listbox

    If you would care to share, I wouldn't mind seeing the code for your AppointmentsCheck Function.
  7. S

    Email VBA Woes

    This is what I did to email a PDF: Private Sub CmdEmailPDF_Click() On Error GoTo CmdEmailPDF_Click_Err Dim Subject As String Dim MyFileName As String Subject = Me.txtInvoiceNumber & "-" & "Invoice" & ".pdf" MyFileName = Me.txtInvoiceNumber & "_" & "Invoice" & ".pdf" ' Open Invoice...
  8. S

    prevent #Num! in report field

    Isn't it a division by zero problem?
  9. S

    Check a check box based on the entry in another field

    it says "Microsoft Office Access can't find the macro 'RMA 2013' The macro (or its macro group) doesn't exist, or the macro is new but hasn't been saved."? This is very strange. I wonder if I am missing something as I use Access 2010. I have a feeling that isn't the problem though, as this...
  10. S

    Check a check box based on the entry in another field

    This code cannot all be on the same line BTW
  11. S

    Check a check box based on the entry in another field

    Have you coded it EXACTLY like this: If IsNull(me![MainFormName]![Qty 2]) Then Me![MainFormName]![Additional Parts?] = 0 Else Me![MainFormName]![Additional Parts?] = -1 End if And are positive its in the after update event? Can you copy and paste your exact code for me?
  12. S

    Check a check box based on the entry in another field

    or this: If IsNull(me![MainFormName]![Qty 2]) Then me![MainFormName]![Additional Parts?] = 0 else me![MainFormName]![Additional Parts?] = -1 end if
  13. S

    Check a check box based on the entry in another field

    Try this: If me![MainFormName]![Qty 2] = "" then me![MainFormName]![Additional Parts?] = 0 else me![MainFormName]![Additional Parts?] = -1 end if
  14. S

    Form not saving record

    Also check that your control source is correct
  15. S

    Check a check box based on the entry in another field

    This is the same process to figure out what your checkbox is called aswell
  16. S

    Check a check box based on the entry in another field

    Tables have "fields" and "Records" Forms have "objects" In the form, the object is where you enter the data for a "field". The data entered would be the record. If you open your form in design view and open the "properties" tab, click on your textbox where you are entering your Qty 2 data...
  17. S

    Check a check box based on the entry in another field

    Make this change: If IsNull(me![Qty 2]) then me.[Additional Parts?] = 0 else me.[Additional Parts?] = -1 end if Is Qty 2, the name of the textbox, or the name of the field? In the future, try to avoid having spaces in field names...its a bit of a pain! Its also helpful to name textboxes...
  18. S

    Check a check box based on the entry in another field

    In the "After Update" event of your Qty 2 Textbox, you would have to write some VBA that looked something like this: If IsNull(me!yourtextboxname) then me.yourcheckboxname = 0 else me.yourcheckboxname = -1 end if
  19. S

    Convert Form to PDF and Email

    No worries...I remember it taking me a looooooong time to figure this one out! Happy to help!
  20. S

    Convert Form to PDF and Email

    I did this exact thing for a form and it worked like a charm. Here is the code I used: Private Sub CmdEmailPDF_Click() On Error GoTo CmdEmailPDF_Click_Err Dim Subject As String Dim MyFileName As String Subject = Me.txtInvoiceNumber & "-" & "Invoice" & ".pdf" MyFileName = Me.txtInvoiceNumber &...
Back
Top Bottom