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 strongm 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: *

  1. xenofoob

    (Access) Close all open forms.

    -edit- offcouse the msgbox(i) should be replaced for something like Forms(i).close but the value i is nog increasing. The first message box says there are 4 forms open.
  2. xenofoob

    (Access) Close all open forms.

    Hello, tried to search the forum but no threads found. Is there a way to close all the open forms? HAve tried something like this: Dim i As Integer MsgBox (Forms.Count) For i = 0 To i = Forms.Count MsgBox (i) Next i but it didn't work like I expected to. Thanks a lot!
  3. xenofoob

    walk through results from query

    Thanks! works great.... //offtopic What is an effective way to decrease the amount in database2? Is there somekinde of WHERE IN LIST([items]) command that I can use? Or should I query my database per row.....While Not l_rsTmp.EOF For i = 1 To l_rsTmp.Fields.Count 'is it something...
  4. xenofoob

    walk through results from query

    aaaah.... my l_rsTmp.Fields.Count is per field/column I have also walk through the rows probably... or not?
  5. xenofoob

    walk through results from query

    Hello, I have a query that get results from my database. Database 1 +------------------------------------+ | ID | OrderId | Name | AMOUT | Type | +------------------------------------+ I have another database with the total items in stock Database 2 +---------------------------+ | ID | Name...
  6. xenofoob

    Via VB delete row from SubForm -- Weird stuff??

    Already find an answer at my question: Maybe someone can use it :) Instead of executing own query use Access's standard code (I would not wanted to get te warnings): 'Disable warnings :D DoCmd.SetWarnings False 'Default access delete row DoCmd.DoMenuItem acFormBar...
  7. xenofoob

    Via VB delete row from SubForm -- Weird stuff??

    heya I have a subform with the products from my table. Next to each row there is a little button. Onclick that button results that the following code will be executed:Private Sub Knop14_Click() On Error GoTo Err_Knop14_Click Dim strSQL As String Dim l_cmdTmp As New ADODB.Command...
  8. xenofoob

    How to close a form in sub Form_Open()

    Never mind.... My problem was that there was a macro executed at button click to open the form 'FactuurInvoeren'... Can happen if my friends create a form :P Thanks for the suggestions
  9. xenofoob

    Subform refresh after query with weird delay :S

    heya I have a subform with the products from my table. Next to each row there is a little button. Onclick that button the following code will be executed:Private Sub btnDelete_Click() On Error GoTo Err_btnDelete_Click 'Dim some vars Dim strSQL As String Dim l_cmdTmp As New...
  10. xenofoob

    How to close a form in sub Form_Open()

    Still having the problem The function close is being reached because a msgbox is showed.
  11. xenofoob

    How to close a form in sub Form_Open()

    Hello, My Title is clear enough I hope ^o^ This is my piece of code: Private Sub Form_Open(Cancel As Integer) If IsNull([factuur_datum]) Then 'null Else Dim value As Integer value = MsgBox("Date = Null", vbOKCancel) If value = 2 Then...
  12. xenofoob

    How to close a form in sub Form_Open()

    Hello, My Title is clear enough I hope ^o^ This is my piece of code: Private Sub Form_Open(Cancel As Integer) If IsNull([factuur_datum]) Then 'null Else Dim value As Integer value = MsgBox("Date = Null", vbOKCancel) If value = 2 Then...
  13. xenofoob

    Access a variable (global?) in any form (MS Access)

    GREAT! The solution for my problem was to insert public gfLogin as Boolean into the module. Tried this before only without the public. Thanks for the quick reply ;)
  14. xenofoob

    Access a variable (global?) in any form (MS Access)

    Heya, Is there any way to access a variable in a form where the variable is not created? This is my layout (simply explained): mainform: Dim bLogin As Boolean loginform: MsgBox bLogin (result: empty msgbox) The mainform is being closed after loginform has been opened. Is there anyway...
  15. xenofoob

    Nikita6003: SQL Question for you! (Or anyone else!)

    Tnx :) needed some pieces of this code :) My extremly simple login method: Option Compare Database Private Sub Knop4_Click() On Error GoTo Err_Knop4_Click Dim strSQL As String Dim l_cmdTmp As New ADODB.Command Dim l_rsTmp As ADODB.Recordset l_sConnect =...
  16. xenofoob

    Macro is making form empty

    Allright :) here 's my code now Sub autoadd() ' ' autoadd Macro ' Macro opgenomen op 23-11-2004 door E. Holman ' 'If BuildKeyCode(wdKeyControl, _ 'wdKeyShift, wdKeyTab) = 777 Then 'MsgBox "Shift tab ingedrukt", vbCritical 'End If ActiveDocument.Unprotect...
  17. xenofoob

    Macro is making form empty

    Arrr.... can't edit posts. It doesn't work. When I don't fill in anything the macro crashes. I can fill in a number (tried that). Is there a way to count all the fields and decrease that with 3?
  18. xenofoob

    Macro is making form empty

    Well.... my field has no name... Is that no problem? Thanks again ;)

Part and Inventory Search

Back
Top