User Profile
Collapse
-
This was me playing and testing some ideas. Simply wondering why the result was happening the way it was. Thank you for the response. -
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. Thoughts or suggestions?Code:Me.ClientFullSaveBtn.Enabled = False
...Code:Private Sub CAccountTxt_AfterUpdate() Dim db As DAO.Database Dim rst As DAO.Recordset Set db = CurrentDb() Set rst = db.OpenRecordset("ClientTbl", -
Thanks @cactusdata
I don't think Ill ever be able to figure out the damnable quotes.
Works like a dreamLeave a comment:
-
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) 'CombineLeave a comment:
-
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 -
and I hate parenthesis!
Move one and it works.
Code:DoCmd.OpenForm "FollowUpFrm", , , , , , Accessionz & "|" & ClientNumz
Leave a comment:
-
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",
-
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. :)Leave a comment:
-
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
-
@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. :)Leave a comment:
-
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,...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 ThenLeave 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", dbOpeLeave 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()
-
Typically Null equals Nothing.
"0" is actually a value as is " ". The space is "nbsp" in asciLeave a comment:
-
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
Leave a comment:
-
Dosent look like my attachment came through. Trying again. :)...Leave a comment:
-
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,
-
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?"Leave a comment:
-
Sweet! Thank you so much Twinnyfo (once again) for your awesome help.Leave a comment:
No activity results to display
Show More
Leave a comment: