User Profile

Collapse

Profile Sidebar

Collapse
omozali
omozali
Last Activity: Jan 28 '07, 02:54 AM
Joined: Nov 26 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • omozali
    started a topic matching pattern

    matching pattern

    Hi

    I have the following problem

    I have a string that will contain 16 numbers , ones or zeros in unknown order
    How can I find out if the string will have a zero or zeros between atleast two ones

    for example something like 111011111100111 1
    See more | Go to post

  • omozali
    replied to accessing sub from within
    excellent thanks alot everybody...
    See more | Go to post

    Leave a comment:


  • omozali
    started a topic accessing sub from within

    accessing sub from within

    How can I call a sub associated for example with a button from inside my code?

    for example
    -------------------------
    [CODE]private sub f_click()
    Code:
    end sub
    ---------------------------
    private sub s_click()
    
    f_click()  <-- How I call this to run here?
    [more code]
    endsub
    I tried run (f_click()), but didn't work
    See more | Go to post

  • omozali
    started a topic db size

    db size

    Does Database file size usually grow in megabites easly?

    My db file is around 400 GB which is amazing. Which part does it usually take most of space, tables or forms?
    See more | Go to post

  • omozali
    started a topic Multi tab form

    Multi tab form

    Hi,

    How I can create a multi tap form. I used to remember how few years ago but not any more

    I mean many forms shown on the screen and accessed by clicking on their tap just like in excel
    See more | Go to post

  • omozali
    replied to testing for association
    If found the answer

    if Typename(mytext box) = "Nothing" WORKS...
    See more | Go to post

    Leave a comment:


  • omozali
    replied to testing for association
    But if you set mytextbox2 as textbox isnull would still returns true even if you don't associate it to a valid text box...
    See more | Go to post

    Leave a comment:


  • omozali
    replied to testing for association
    I found out that typename(mytext box) before association returns Nothing
    and after association returns TextBox

    The weird thing is this still produces error

    if typename(mytext box) = Nothing then...
    See more | Go to post

    Leave a comment:


  • omozali
    started a topic testing for association

    testing for association

    Hi,

    How can I test if a variable was associated with an object or not

    for example
    dim mytextbox as textbox
    if mytextbox = Nothing then <=== this produces error
    mytextbox = textbox0
    else
    set mytextbox = Nothing
    endif
    See more | Go to post

  • omozali
    replied to variable field
    Thanks for everybody replies
    Here is what I'm really trying to do

    in a form there is option button 4 and option button 6
    there are also 2 hidden text fields: text0 and text2
    and a button

    I want when ever an option button is checked and the button clicked then one of the textboxes would become visible depending which one is still invisible

    so for example checking option button 4 would...
    See more | Go to post

    Leave a comment:


  • omozali
    started a topic variable field

    variable field

    Hi all,

    How can I store field name into a variable and then access its properties?

    for example field text1

    I'm trying something like this

    dim box as string
    box = "text1"
    box.visible = true


    I always get error
    I even tried [box].visible and ["box"].visible but non works

    thanks
    See more | Go to post

  • omozali
    replied to Insert Into query using VBA
    Sorry for the late responce. my situation is ok now thanks...
    See more | Go to post

    Leave a comment:


  • omozali
    replied to Insert Into query using VBA
    unfortunately, it didn't...
    See more | Go to post

    Leave a comment:


  • omozali
    replied to Insert Into query using VBA
    one small thing when the code run a small window would appear saying
    you are about to a append 1 row and asks for confirmation

    any way to remove this annoying window?
    See more | Go to post

    Leave a comment:


  • omozali
    replied to Insert Into query using VBA
    an update for those interested , this code works

    Private Sub Command7_Click( )
    Dim strUSER As String
    Dim UN As String
    Dim PW As String
    UN = username.Value
    PW = password.Value
    strUSER = Nz(DLookup("[user]", "table2", "[user] ='" & username.Value & "'"), "nouser")
    If strUSER = "nouser" Then
    Rem CurrentDb.Execu te...
    See more | Go to post

    Leave a comment:


  • omozali
    replied to Insert Into query using VBA
    I tried this

    CurrentDb.Execu te ("INSERT INTO table2 ([user], [pass]) VALUES (username.value ,password.value )")

    generates: too few parameters, expect 2

    I also tried
    CurrentDb.Execu te ("INSERT INTO table2 ([user], [pass]) VALUES ('username.valu e','password.va lue')")

    Things get added to the table but instead the value of username I actualy get the text username.value...
    See more | Go to post

    Leave a comment:


  • omozali
    replied to Insert Into query using VBA
    Unfortunately the code generated syntax error :(...
    See more | Go to post

    Leave a comment:


  • omozali
    started a topic Insert Into query using VBA

    Insert Into query using VBA

    Can someone please tell me why INSERT INTO generates syntax error

    Private Sub Command7_Click( )
    Dim strUSER As String
    strUSER = Nz(DLookup("[user]", "table2", "[user] ='" & username.Value & "'"), "nouser")
    If strUSER = "nouser" Then
    INSERT INTO table2;
    VALUES (username.Value ,password.Value );
    MsgBox "User added"...
    See more | Go to post

  • omozali
    replied to Validate User password entry using VBA
    could you plz explain this code for me?...
    See more | Go to post

    Leave a comment:


  • omozali
    started a topic Select ... From

    Select ... From

    I still new to SQL think and trying to learn but its not easy

    I have a table called table2, it has 2 fields user and password. In a form I have a textbox that will contain input

    I want to do search on this table to find if user exist or not
    How can I do that?

    I tried
    SELECT user FROM table WHERE box.value=user

    but get error on 'user' saying expected: Case
    See more | Go to post
No activity results to display
Show More
Working...