User Profile

Collapse

Profile Sidebar

Collapse
artemetis
artemetis
Last Activity: Jul 20 '14, 10:06 AM
Joined: Jul 19 '07
Location: USA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • artemetis
    replied to Data Breakout in Access SQL
    Thank you!
    I've added this to access query; first it kicks back Enter Parameter Value "LenFN" box. I leave it blank and it displays uid and pFirstName. pLastName and pCoded display #Error using this code

    Code:
    SELECT qM.[UID], Left([Person_Info],[Space1]-1) AS pFirstName, Mid([Person_Info],[Space1]+1,IIf([Space2]=0,Len([Person_Info]),[Space2]-1)-[Space1]) AS pLastName, IIf([Space2]=0,Null,Replace(Mid([Person_Info],[Space2]+2,99),')',''))
    ...
    See more | Go to post

    Leave a comment:


  • artemetis
    replied to Data Breakout in Access SQL
    Thanks for the reply. I'm not using an asterisk in the field name; that was just for show that additional information for this field. like "See below"

    Neo is right with split function, I am just not so sure on how to use this.

    There is a first space from left, after first name. There is last name after this, then space before parentheses on some records.
    See more | Go to post

    Leave a comment:


  • artemetis
    replied to Data Breakout in Access SQL
    Thanks, NeoPa.

    I'm looking to get the following. Ihope this next information helps.

    Easiest is to just display the following in a query.

    Each record looks like this from tblMaster: uid, person_info (uid not shown in results)

    arthur smith (18_7)
    josephy and (87_3)
    patrick murphy (8_e3/2)
    ed sully
    mark vignion
    mark jalus (7_3_0)

    I would like that data from...
    See more | Go to post

    Leave a comment:


  • artemetis
    replied to Data Breakout in Access SQL
    Thanks for the reply, folks. Exactly, Neo...perfect illustration. I'm just a dabbler and don't get to use these programmings function as often as I would like, but I am sorry for not being more clear.

    the original table has the fields:
    uid, person_info

    uid is autonumber and person_info is "firstname lastname (misc)", a horrible piece of data.

    I would like to run a make table query to dump these...
    See more | Go to post

    Leave a comment:


  • artemetis
    started a topic Data Breakout in Access SQL

    Data Breakout in Access SQL

    in tblMain I have a field that contains txt in the following format:

    "firstname lastname (misc)"

    Not all entries have the (misc).

    I need to break out the three fields

    firstname, lastname, and other when included in the entry.

    Thanks
    See more | Go to post

  • Thanks, Twinnyfo!
    That did it!!!
    See more | Go to post

    Leave a comment:


  • My main report is bound to tblMain.
    This tbl has empFirstName, empLastName, empGender

    I have two text boxes in the header:
    txtMaleCount and txtFemaleCount

    I've tried several ways to get the counts into each text box, with no success. Zmbd's last respone^^^, second paragraph, is what I'm trying to do.

    Thanks, in advance.
    See more | Go to post

    Leave a comment:


  • Thanks folks.

    ZMBD - I'm adding this to an existin report, which contains sub-reports.

    Funny thing, when creating a "New Report" when using the SQL as a datasource, I'm able to get a report showing
    F - 32
    M - 40

    As soon as I add a subform, the subform gets displayed twice with a genderCount as a header.

    (feel free to split this thread as necessary)
    See more | Go to post

    Leave a comment:


  • I have tried the aggregate query.

    This query gives me the correct counts, but not sure how to call the count number in the report field:

    Code:
    SELECT tblMain.Gender, Count(tblMain.Gender) AS CountOfGender
    FROM tblMain
    GROUP BY tblMain.Gender;
    The report has a txtMale & txtFemale box.

    Thanks!
    See more | Go to post

    Leave a comment:


  • Getting total counts of types in column, for example gender

    I have a table (tblMain) with field Gender. I am trying to get a count in SQL of Female and Male personnel so I can update a form containing two fields "Male = and Female = ".

    The values stored in the tbl are "M and F".

    Thanks!
    See more | Go to post

  • artemetis
    replied to Extract string into column data
    Looks like it will work, but getting a continual yes/no button at line
    Code:
    DoCmd.RunSQL "INSERT INTO tblIPAddresses(fldIPAddress) VALUES ('" & arr(iCount) & "');"
    See more | Go to post

    Leave a comment:


  • artemetis
    started a topic Extract string into column data

    Extract string into column data

    Hi there!

    I have a txt file with a string of about 1,000 ip addresses, delimited by comma.

    I need to read the file into Access (just to have it displayed in a qry for view.

    I have the .txt file linked in Access, but how to get each entry (delimited by comma) into a new line item?
    See more | Go to post

  • artemetis
    replied to How do I Find Count of Matching Items
    AWESOME!

    Worked like a charm!!
    Thanks, Rabbit!~
    See more | Go to post

    Leave a comment:


  • artemetis
    started a topic How do I Find Count of Matching Items

    How do I Find Count of Matching Items

    Hey there!

    I have a table with tool sizes.

    table: tblTool1
    field: tl1Size

    tlSize contains the following info: small, medium, large
    There are thousands of tools and I need to run a query to get a count of how many small, medium, and large tools there are.

    Never did a "count" before.
    See more | Go to post

  • artemetis
    replied to Creating a username field
    Thank you Mariostg!
    Is there a way to use this in my qry or must I use a form?

    Thank youa again
    See more | Go to post

    Leave a comment:


  • artemetis
    replied to Creating a username field
    firstName: jack
    lastName: jones / group1
    username: jjones /

    desired username: jjones

    I'm trying to have my qry return "jjones".
    In the instance where the lastName is less than eight characters, it is including the first blank space and the backslash.
    See more | Go to post

    Leave a comment:


  • artemetis
    started a topic Creating a username field

    Creating a username field

    Hi. I have a table with firstName & lastName. I need to run an sql to create a userName. I want the username to be the first initial of firstName and first seven letters of lastName.

    I have this so far:
    Code:
    username: LCase(Left([firstName],1) & "" & (Left([lastname],7)))
    but am running into a small problem.

    Some of the last names are shorter than 7 characters which is ok, but these "shorter...
    See more | Go to post

  • Yes, please. I do need help with this. Thank you jhardman.
    See more | Go to post

    Leave a comment:


  • Thanks for the reply Jared.

    I think that the first code is what I am looking to do, but it doesn't seem to be working.

    When I run that code from a hyperlink on my page, it returns a blank page with the following url:

    Code:
    http://www.natetesting.com/Nate_Lookup_Results.asp?NATEID=7584962
    Am I missing something?
    See more | Go to post

    Leave a comment:


  • Passing value from external site to ASP form?

    Hey there...working on a customer site.

    The customer is a member of NATE.

    Included on his website is his contractor ID#.

    I'd like to make this ID# a hyperlink to the results of the following:

    http://www.natetesting .com/NATE_Lookup.htm

    Meaning, when a visitor clicks on his displayed #, it will run/return the results of http://www.natetesting .com/Nate_Lookup_Res ults.asp, populated...
    See more | Go to post
No activity results to display
Show More
Working...