Results 1 to 5 of 5
  1. #1
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544

    Greek characters in query when pulling data from unbound form control


    Has anyone ever had this happen? I get these "ᅀ䃥" when I am trying to get the data from an unbound date field on my form, it will append the date correctly, but it will not concatenate the fields properly at runtime.
    Code:
    Note1: [forms]![runassessments]![assessmenttype] & " - " & "Due " & DatePart("m",[Forms]![runassessments]![dateassessed]) & "1" & DatePart("yy",[Forms]![runassessments]![dateassessed])
    This is happening in more than one database, in another I am getting these characters: "䙠䃣"

    SQL the Append Query is based on:
    Code:
    INSERT INTO Accounts ( MemberID, Type, LotNumber, DateAssessed, EnteredBy, Details, DBAmount, [Note] )
    SELECT AddAsmttoAccounts1.MemberID, AddAsmttoAccounts1.AssessmentType, AddAsmttoAccounts1.LotNumber, AddAsmttoAccounts1.DateAssessed, AddAsmttoAccounts1.User, AddAsmttoAccounts1.Details, AddAsmttoAccounts1.Amount, AddAsmttoAccounts1.Expr1
    FROM AddAsmttoAccounts1;
    Final SQL:
    Code:
    SELECT Members.MemberID, MemberAssessments.AssessmentType, MemberAssessments.Amount, MemberAssessments.LotNumber, [Forms]![RunAssessments]![AssessmentDate] AS DateAssessed, "Auto" AS [User], [Forms]![RunAssessments]![Details] AS Details, [Forms]![RunAssessments]![assessmenttype] & " " & [AD] & " " & [lotnumber] AS AsmtNote, Format([Forms]![RunAssessments]![AssessmentDate],"mmm yy") AS AD, MemberAssessments.LotNumber, [forms]![runassessments]![assessmenttype] & " - " & "Due " & DatePart("m",[Forms]![runassessments]![dateassessed]) & "1" & DatePart("yy",[Forms]![runassessments]![dateassessed]) AS Expr1
    FROM Members INNER JOIN MemberAssessments ON Members.MemberID = MemberAssessments.MemberID
    WHERE (((MemberAssessments.AssessmentType)=[Forms]![RunAssessments]![AssessmentType]) AND ((Members.NoAssessments)=False) AND ((Members.Inactive)=False));
    Any information or assistance you can provide will be greatly appreciated!!! Happy Friday all!

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,418
    this issue is usually associated with memo fields in group by queries or when used as criteria or in calculations (such as concatenate). See this link http://allenbrowne.com/bug-18.html

  3. #3
    NTC is offline VIP
    Windows 10 Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    with your query in design view: have you set up the parameter?

    right click in the upper portion of the query design view and select: parameter

    then enter your full form control name i.e.
    [forms]![runassessments].[assessmenttype] and define the field type it is.

  4. #4
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Thanks Micron and NTC! No memo fields and no parameters. I got it to work by add "format" to the field.
    Code:
    format(
    [Forms]![runassessments]![dateassessed]
    ,"short date")
    Did the same for currency as well.

  5. #5
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,798
    Cool! I get credit just for reading!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Pulling data into a form from query on a web app
    By DianeArthur in forum Access
    Replies: 0
    Last Post: 08-07-2016, 10:46 AM
  2. Problem with Greek characters in report
    By warmslime in forum Reports
    Replies: 2
    Last Post: 02-01-2016, 12:10 PM
  3. retrieve data from unbound control on form
    By Abacus1234 in forum Queries
    Replies: 6
    Last Post: 08-04-2015, 05:31 PM
  4. Replies: 3
    Last Post: 06-17-2015, 01:16 PM
  5. Using unbound form data in query not working
    By Perceptus in forum Queries
    Replies: 4
    Last Post: 10-21-2014, 08:00 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums