User Profile

Collapse

Profile Sidebar

Collapse
Abhean
Abhean
Last Activity: Oct 6 '20, 08:01 PM
Joined: Mar 7 '19
Location: SOuth Carolina
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Abhean
    replied to Disabling the Save Button
    This was me playing and testing some ideas. Simply wondering why the result was happening the way it was. Thank you for the response.
    See more | Go to post

    Leave a comment:


  • Abhean
    started a topic Disabling the Save Button

    Disabling the Save Button

    Working on a record check and all seems to work as I expected until I attempted to disable one of my buttons on the form. Now, none of the pulled information shows on the form as it did prior to the introduction of
    Code:
    Me.ClientFullSaveBtn.Enabled = False
    . Thoughts or suggestions?

    Code:
    Private Sub CAccountTxt_AfterUpdate()
    Dim db      As DAO.Database
    Dim rst     As DAO.Recordset
    Set db = CurrentDb()
    Set rst = db.OpenRecordset("ClientTbl",
    ...
    See more | Go to post

  • Abhean
    replied to Dlookup check
    Thanks @cactusdata
    I don't think Ill ever be able to figure out the damnable quotes.
    Works like a dream
    See more | Go to post

    Leave a comment:


  • Abhean
    replied to Dlookup check
    Sorry for the delay. I am attempting to check a table to see if an email is already in the table.

    It appears that the code is always giving a true response.

    And please do not blast me for the naming. I know. :)

    Code:
    Dim FullEmail As String
    Dim EMName As String
    
    'Prepare the email, Strip first initial from first name
         initial = Left(LTDLastName, 1)
        'Combine
    ...
    See more | Go to post

    Leave a comment:


  • Abhean
    started a topic Dlookup check

    Dlookup check

    Need some help/pointer. I am attempting to search a table/field to see if it matches a field in a form.

    This is not working for me. I am just looking to hard, but reaching out.

    Code:
    If Me.Txt_field = DLookup("[field]", "Table", Preset_variable) Then
       'found it
    Else
       'didnt find it
                                
    End If
    See more | Go to post

  • Abhean
    replied to OpenArgs format question
    and I hate parenthesis!
    Move one and it works.
    Code:
    DoCmd.OpenForm "FollowUpFrm", , , , , , Accessionz & "|" & ClientNumz
    See more | Go to post

    Leave a comment:


  • Abhean
    started a topic OpenArgs format question

    OpenArgs format question

    I am using openargs to transfer 2 variables to a form. However I am missing something when I sent the request through.
    The second variable goes through without problem, but the first one is not. The system is seeing the Var name and sending that. Im sure it is just a formatting problem.

    Code in Parent I Need it to pull the variable Accessionz and ClientNumz. The Bar is the separator.

    Code:
    DoCmd.OpenForm "FollowUpFrm",
    ...
    See more | Go to post

  • Abhean
    replied to Table check from Form
    It is telling me Datatype mismatch in criteria expression.
    both data sets are number.

    BAM! the 2nd code snippet worked like a dream.

    And thanks for the advice. I am having to relearn access once again. :)
    See more | Go to post

    Leave a comment:


  • Abhean
    started a topic Table check from Form

    Table check from Form

    Ok I am not good at forming my questions. I am attempting to check for existing records from a table (Client) specifically from (CAccount) field on that table. The form I am working in is based on another table (DoSService). The txtfiels on the form is (DoSLocation).

    I keep getting an error at the .findfirst line. What am I forgetting or missing?

    Code:
    Private Sub DoSLocation_AfterUpdate()
    Dim db      As DAO.Database
    ...
    See more | Go to post

  • Abhean
    replied to Discuss Editing Data in Code AND on Form
    @zmbd

    Thanks for your input! I am grateful for your time and experience. Everything makes since and I am following your advice.

    @NeoPa sorry for going off the main topic. Simply trying to gain as much as I can. :)
    See more | Go to post

    Leave a comment:


  • Abhean
    started a topic Discuss Editing Data in Code AND on Form

    Discuss Editing Data in Code AND on Form

    [Admin (NeoPa) Addition]
    This new thread was created from an existing one (Adding another search/modify to DAO recordset search) as the discussion was not related to the question of the thread.


    NeoPa, sorry I removed (commented out) lines 9 and 10 from above, so it is now just opening the modification form. Just using the search to see if there is a record already there or if one need to be added.

    Zmbd,...
    See more | Go to post
    Last edited by NeoPa; May 25 '19, 10:40 PM.

  • Many thanks. Had just figured out the update, But decided to open a form based on the MaterialNumber so the user could fill out the entire record on that table. Looks like:

    Code:
    With rst1
                If Not (.BOF And .EOF) Then
                    Call .MoveFirst
                    .FindFirst "MaterialNumber= '" & Me.FinalRef & "'"
                    If Not .NoMatch Then
    ...
    See more | Go to post

    Leave a comment:


  • Ok, I think I am getting there.

    Modified the above code to add a new var (rst1) and set that to look at my "MaterialNu m" table.

    Code:
    Dim db      As DAO.Database
        Dim rst     As DAO.Recordset
        Dim rst1    As DAO.Recordset
        Set db = CurrentDb()
        Set rst = db.OpenRecordset("Roche", dbOpenDynaset)
        Set rst1 = db.OpenRecordset("MaterialNum", dbOpe
    ...
    See more | Go to post

    Leave a comment:


  • Adding another search/modify to DAO recordset search

    With Twinnyfo's help I was able to get a record search up and running. Now, I need some more help. How can I search on a second table either during or after my current search.

    Once the main search in the "Roche" table I need to do another search in the "MaterialNu m" table. Any other help or pointers on the following code would be most appreciated.

    Code:
    Private Sub TxtUpcSearch_AfterUpdate()
    ...
    See more | Go to post

  • Typically Null equals Nothing.
    "0" is actually a value as is " ". The space is "nbsp" in asci
    See more | Go to post

    Leave a comment:


  • Abhean
    replied to Combining Like Fields within a Report
    Woot! Thanks for the help. Only had to change a little as I was pulling from 2 Tables.

    SQL, so far, looks like this:

    Code:
    SELECT MaterialNum.MatDescrip, Max(Concat(MatDescrip,OnHand)) AS Features, Roche.Ref2, MaterialNum.Family, MaterialNum.Type
    FROM Roche INNER JOIN MaterialNum ON Roche.Ref2 = MaterialNum.MaterialNumber
    GROUP BY MaterialNum.MatDescrip, Roche.Ref2, MaterialNum.Family, MaterialNum.Type
    ...
    See more | Go to post

    Leave a comment:


  • Abhean
    replied to Combining Like Fields within a Report
    Dosent look like my attachment came through. Trying again. :)...
    See more | Go to post

    Leave a comment:


  • Abhean
    started a topic Combining Like Fields within a Report

    Combining Like Fields within a Report

    I am trying to create a report using a Query using 2 tables. The information is on the attachment.

    What I am wanting to do is to be able to concatenate? the MatDescrip so those that are equal go to the same line in the report while those lines that are combined add together the OnHand amounts to give a a total on the report.

    Code:
    SELECT MaterialNum.MatDescrip, Roche.GTIN, Roche.Lot, Roche.Exp2, Roche.Ref2, MaterialNum.Type,
    ...
    See more | Go to post
    Last edited by NeoPa; May 13 '19, 04:02 PM. Reason: Made pic viewable.

  • Abhean
    replied to Spin button refresh
    while we are on spin buttons. Is there a setting between the "up arrow" and the "down Arrow"?

    Meaning, if I wanted to assign a value to a field if they click the up arrow, but another value when down arrow was clicked.

    Edited:
    Found the answer
    spinup and spindown function.

    Code:
    Private Sub Spinbutton8_spindown()
        'set usagedate
        MsgBox "Changes saved?"
    ...
    See more | Go to post
    Last edited by Abhean; Apr 24 '19, 06:14 PM. Reason: Found the answer.

    Leave a comment:


  • Abhean
    replied to Spin button refresh
    Sweet! Thank you so much Twinnyfo (once again) for your awesome help.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...