Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sanan
  • Content: Threads
  • Order by date
  1. sanan

    Error handler and ADO recordset

    Hi there I have the following codes in on_Click event of a Button. And as you can see it’s job is to Add data to a Table in my DataBase, And It works. But here is the little problem that I have with it, In order for it to work, all the Fields in my “tableSales” must have a value for them, other...
  2. sanan

    Forcing a User to enter Data into a control before leaving it

    Hi There What is the best way to make sure that a User enters a value in a Particular form, Before Leaving it to next Control? I know we can use the LostFocus Event of that control, But that can create problem if the user decides to close the form before Entering any value in it, as you know the...
  3. sanan

    Setting Control values to a value like Null

    Hi there I have a form with bunch of TxtBoxes, comboBoxes, Buttons, and a subform, I would like to set the value of all the TxtBoxes and comboBoxes in my Form (Not the subform) to Null. I know one way to do it is by calling each one of them like; Me.InvoiceID100.Value = Null But since there are...
  4. sanan

    Error Handler Mystery!

    Hi there I am a little confused on Error Handler in ADO recordset. Following codes Work. (so do not be intimitate by the size of it) Basically How does the Error handler work? I have some Idea about the concept of it, But I am not quite sure “for example, In a situation that we are trying to...
  5. sanan

    Pause or wait for some time between Executing 2 different events

    Hi There For Example, I would like to press 2 Buttons by pressing 1 Button, or in UnLoad Events of a form. Lets say that we have; Command10_click Button and Command20_Click button I would like that both of them to be pressed in an Unload event of my form, But here is the challenge that there...
  6. sanan

    How to show the last record in an UnBound TxtBox?

    Hi there I have an Unbound TxtBox, which I would like to show the last value of Column in a table. Do you have any Idea, that How this can be done? I know it could be done using DlookUp, But I just do not know what to use for criteria for it. =DlookUp(“SalesID”,”TableSales”,”me!LastRecord”)...
  7. sanan

    The Data gets saved, But It should not.

    Hi There I have an application of Access as Fe and SQL as BE, And I have a Form called “sales” in it with a subform in “sales” which is called “Account Details” The account details is made of a comboBox and 3 TxtBoxes 2 of the txt boxes are called “Sc10” and “Sd110”. The subForm Default View...
  8. sanan

    Problem with Error Handler using ADO Recordset

    Hi there I have a question about Following codes; These Below codes as you can see update a table by Name of Tablesales using ADO recordset And they work for most Part, But as you can see these codes check for the Error (# -2147217900, 3219, and any Unknown error) for all my Records, but I want...
  9. sanan

    Problem of Errors (Duplicate…) in ADO Recordset

    Hi there I have a question about Following codes; These Below codes as you can see update a table by Name of Tablesales using ADO recordset And they work for most Part, But as you can see these codes check for the Error (# -2147217900, 3219, and any Unknown error) for all my Records, but I want...
  10. sanan

    Populating a subform of some default values upon opening it.

    Hi there I have a subform called “Products Details”in my form called “sales” . This Subform has a DefaultView of DataSheet. This subForm has a comboBox called “ComProducts” with different Products in it; Here is the challenge, I want upon opening the “Parent form (sales) and Consequently the...
  11. sanan

    avoiding access MsgBoxes after my Own MsgBox

    Hi there I have a form with Access as FE and SQL as BE, I have some codes in my Before Events of my form. Which is working sort of fine, But here is my problem after I get my msgBox with a vbyes and vbNo option, after for example pressing the yes Button, I get the access MsgBox “off course it...
  12. sanan

    Whati s wrong with this Line of code?

    Hi there I have a form in a application with Access as FE and SQl as BE. The following line of codes (Different version of the same Line) Does not work any suggestion of what is wrong with it? I had these line in a Data Source of a TxtBox control, The Field Data Type of the comboBox Contol is...
  13. sanan

    Problem to close a Form

    Hi there I have a little difficulty with my codes When I want to close my form called “sales”. I have following codes in it’s UnLoad event, and it checks for the value of 2 txtboxes before it closes, And it works; Private Sub Form_Unload(Cancel As Integer) If Sd.Value - SC.Value <> 0 Then...
  14. sanan

    Preventing a User f entering duplicate values

    Hi There I am trying to stop the users of entering duplicate values in a textBox control called (InvoiceID). I came up with following codes, But the do not work for me at the time, Any suggestion? Here are the codes, that I tried; Private Sub InvoiceID100_BeforeUpdate(Cancel As Integer) Dim Msg...
  15. sanan

    Making a Demo All Access App. from ann Access FE and SQL BE

    Hi there I have made an App. using Access as FE abd SQL as BE, I would like to make a Demo Version of all Access App. Can It be done? Here are the details; To be Exact, I have about 25 Tables, and 20 views as of yet. Luckily, I have not started to create my Stored Procedures, Functions, and...
  16. sanan

    What is wrong with my codes, any suggestions

    Hi Every Body At first let me explain the situation a bit. I have a form. Upon Opening the Form, In order to make my users to select an option in my comboBox (Indexed value is 0), I have the following Codes: Private Sub Combo144_LostFocus() Dim strMsg As String, strTitle As String Dim...
  17. sanan

    Forcinga user to use certain controls up on opening a Form

    Hi Every Body Upon opening a certain Form, What is the best way to force a user to use a certain CommboBox or CheckBox before they can use any other controls on that Particular form? Another related problem, Using VB codes, how can I choose or set a value of my CommboBox? For example I would...
  18. sanan

    How to force my users to push tab or enter buton after evrey Entery?

    Hi every Body How can I force my Users to push the Tab Button or enter Button after they Enter any values in my Text Box Controls? If they do not push those buttons they should not be able to close or add a new Record. Best regards sanan
  19. sanan

    Executing 2 Commands or Events by One Button

    Hi Every Body Is it possible to Execute 2 Events by one Button? Let me Explain a Little, I have a Form and a in it a Subform, My sub Form is in DataSheet View, and There is a Master and Child Link Field between the 2 Forms. On My sub form there are 2 Text Boxes, I removed my Navigation Buttons...
  20. sanan

    Freezing an Operation

    Hi Every Body Here is the problem I am experiencing with it. First I explain the situation, I have a Form and a Subform in it. My SubForm Propertie’s default View is DataSheet. There are 2 Text Boxes in My SubForm that The Entries on them must be Equal. In Order to make my Users Enter the...

Part and Inventory Search

Back
Top