Recent content by naungsai

  1. N

    For loop with dynamic query

    Dear Friends I am trying to make dynamic query. I have a sub saying strSQL1="Select * from qryProduct1" strSQL2="Select * from qryProduct2" strSQL3="Select * from qryProduct3" for t=1 to 3 strSQL0=strSQL & t do something next t But when I run it, it does not know the resulted strSQL0...
  2. N

    Lookup continuous subform

    Dear John thanks for you quick response. Do you have or can you refer me an example file/ article about it?? Thanks again in advance.
  3. N

    Lookup continuous subform

    Dear Friends I have built my form with 4 layer of subforms with my MS Access 2010. Say I have a field, called "text2", in 2nd Subform "subFrm2". In 3rd subform "SubFrm3", I have an field, called "text3" which is also a combo box. My question::: I want to make the drop down of "text3"...
  4. N

    AllowAddition in Subform

    Dear John Thanks for your quick reply. I have check it. I think it is correct. In my form, it works well in "AllowEdits" and "AllowDeletions". But for "AllowAdditions", although the "txtUserName" and "txtStaff" are equal, new records row does not appear in the subform. Thanks again.
  5. N

    AllowAddition in Subform

    Dear Friends:) I have a subform, the content of which will be manipulated conditionally. If in the main form, the txtUserName and the txtStaff are equal, the content in the subform can be edit, delete and add new record. I used the following code to do this. All works well. but the problem is...
  6. N

    Enable Conditionally

    Thank you for your prompt response. It work well. Thanks again. Best:) :)
  7. N

    Enable Conditionally

    Dear friends I have a form with a sub-form in my front end database. In the form I have a field which notes the Person who enter the form. Another field I have is Person who is logging in. Question: if the person who created the record is equal to the Person who is logging in, the fields in...
  8. N

    If Statement

    Dear Friends Can somebody help me write a function with VBA for the following if statement. Changes: IIf(([OldCat])="","Start", IIf([OldRegimen]=[NewRegimen],"Same",:) IIf([OldRegimen]<>[NewRegimen] And [OldCat]=[NewCat], "Substitute","Switch"))) Thanks in advance!:)
  9. N

    Copy Unbound Text Box

    Dear Friends I have a form with 4 Unbound Text box. After entering a value in the first Unbound Text box, I want the rest 3 unbound text box to copy the same value from the first unbound text box. Thanks in advanced. Sai:)
  10. N

    Print conditionally

    The problem is, it does not choose the correct "Cheque" type depend on "Currencys". It keeps on printing using the "USDChues" when I want it to print in "MMKCheques". This is the question number 1, I want to solve. Another question is, how do I create a report field not to be printed via...
  11. N

    Print conditionally

    Dear Friends I am buiding a form to print cheques. In my office, we use 2 currency; USDollar and MMK(Local Currency). Because the size of the 2 cheques are different, I have created 2 reports. In my form, I also have a field for these2 currency. In clicking the Print button, the print...
  12. N

    TransferSpreadsheet with SQL String

    Dear Friend Sorry for double posting. I have try the following post. Private Sub Export_to_Excel_Click() Dim curDatabase As DAO.Database Dim QueryName As String Dim qryDef As DAO.QueryDef Dim strSelect As String Set curDatabase = CurrentDb QueryName = "" strQueryName = QueryName...
  13. N

    TransferSpreadsheet with SQL String

    Dear folks In the place of “Table Name” below, I have put the name of one of my sql table. DoCmd.TransferSpreadsheet acExport, , "qF01", "D:\Stock.xls", True, "Form01" I want to know whether I could put the sql string like “Select * from qF01”. Thanks in advance.
  14. N

    TransferSpreadsheet with SQL String

    :)Dear folks In the place of “Table Name” below, I have put the name of one of my sql table. DoCmd.TransferSpreadsheet acExport, , "qF01", "D:\Stock.xls", True, "Form01" I want to know whether I could put the sql string like “Select * from qF01”. Thanks in advance.:)
  15. N

    Code does not work in MS Access 2010

    Thanks I have solved it with your suggestion.:) Thanks to all our altruistic friend.
Back
Top Bottom