Search results

  1. N

    SQL update from an empty value textbox by vba

    I've applied a function (CSql) to sDept = CSql(txtDept.Value) to handle empty value in the textbox and rebuilt the sql as follows sAppt = "UPDATE tblTAppt SET ApptStart=#" & txtApptStart.Value & "#, ApptEnd=#" & txtApptEnd.Value & "#, JobPosition=" & sJobPosition & _ "...
  2. N

    SQL update from an empty value textbox by vba

    sJobPosition = Nz(txtJobPosition.Value, "") sAppt = "UPDATE tblTAppt SET ApptStart=#" & txtApptStart & "#, ApptEnd=#" & txtApptEnd & "#, Completed=" & chkCompleted & _ ", AppointedBy=" & sApptedBy & ", RankCode=" & fraHSR & ", JobPosition=" & sJobPosition & ", Dept=" &...
  3. N

    SQL update from an empty value textbox by vba

    I've textbox in a form which is an option for data entry. I encounter a problem of SQL update from an empty value textbox to the table with VBA. Welcome any suggestions
  4. N

    execute sql with textbox for date

    Thank you for SQL construct. Is there any alternative to implement the SQL? Best.
  5. N

    execute sql with textbox for date

    I've the following SQL and update. sAppt = "UPDATE tblTAppt SET ApptStart=#txtApptStart#, ApptEnd=#txtApptEnd#, Completed=chkCompleted, " & _ " AppointedBy=txtApptedBy, RankCode=fraHSR, JobPosition=txtJobPosition, Dept=sDept, Company=sCompany, " & _ "...
  6. N

    Assign to private variable from a subform

    Hi, I built a main form, a private variable and a subform. If the user clicks to select from subform, I'll assign that private variable declared in main form to the value of the selected item in subform. The work is listed below frmTutor ' this is Main Form Option Compare Database Option...
  7. N

    Checkbox set to null value

    Thank you for the suggestions. I decided to withdraw the use triple state of check box. It causes a lot of difficulty in implementations. Best.
  8. N

    Checkbox set to null value

    I know. What alternative solutions does MS Access handle the business requirements ? Thank you
  9. N

    Checkbox set to null value

    How? Have any alternative solution?
  10. N

    Checkbox set to null value

    I use VBA to build a form and need it to be refreshed (to clear all controls) once the user click a option of option group in it. I can't make it work to set the checkbox to null when I refresh the form even I set the control to triple state. I've read a lot of posts and white paper and found...
  11. N

    recordset in excel-like form

    That's great! main form is default view to "datasheet". However, subform can't be displayed in main form's default view of datasheet. Can I set default view both main form and subform to default view of "datasheet"?
  12. N

    recordset in excel-like form

    The end users prefer the excel-like format. tblTutor -> ID, LastName, FirstName, Specialist (=key in tblSpecialty), ID LastName FirstName, Specialist 3 Carol Miguel 2 5 Tim Buffet 4 tblSpecialty -> ID, SDesc ID SDesc 1 Specialist 2...
  13. N

    recordset in excel-like form

    Hi, I need to use VBA to build an interface for display the reccordset in excel-like format, it allows a selection of a particular entry in the recordset for editing and its associated one-to-many values display in a subform. I would be grateful if you've any idea/sample for this...
  14. N

    Update from another table

    How come the query pops the following error. Operation must use an updateable query
  15. N

    Update from another table

    I want to update "Fellow" field in tblTAvail_FPA from the records in qry_Fellow_unique I built a query update (qryU_fellow) in ACCESS 2016. That's UPDATE tblTAvail_FPA SET (FPA.Fellow = -1) FROM tblTAvail_FPA, qry_Fellow_unique INNER JOIN tblTAvail_FPA, qry_Fellow_unique ON...
  16. N

    SQL to create a boolean column for either column 1 or column 2 is true

    Thank you for the suggestion. I need to study it. It's a good inspiration.
  17. N

    SQL to create a boolean column for either column 1 or column 2 is true

    I have no idea on this. Your suggestion works for my situation. Thank you
  18. N

    SQL to create a boolean column for either column 1 or column 2 is true

    I have a tblTutor(Key: TRef) and tblTAvail(foreign key: TRef) tables. tblTutor: TRef(key), FHKAM_FM(boolean type) FHKCFP(boolean type) tblTAvail: TRef(foreign key), SessionNumber I need to make a SQL to link the tables and list their columns and a boolean column, say "fellow" column (type...
  19. N

    Method tiggered with new event in a subform

    "New" means "New (blank) record" in the sub-form's navigation bar. Pls. see the attached photo. The user clicks this "New (blank) record" to controls of this "new blank record" on the main form. Then I can validate the values entered in the controls. The attached photo also shows the...
  20. N

    Method tiggered with new event in a subform

    I have a main form and a subform, I wanted to know what method will be triggered when i click new in the subform. I would be grateful for any suggestions. NT100
Back
Top Bottom