In my forename field I have entries with just the initial. I would like my query to filter out anything less than 2 characters. Does anyone know the criteria format?
How to get the last character of the string in query?
I have a table name PlateNo and I want to get the last character for registration purposes.
Ex. ZMD-123 - I want to get the number three(3) and if its possible every time the user types the last digit in criteria it will show all plate number ending in the entered number.
I've got a query that does exactly what this (http://www.access-programmers.co.uk/forums/showthread.php?t=89564&highlight=null+records) chap got his to do.
However I want to add a "*" character to the criteria to allow for searches with partial matches. Here's the criteria that works:
[title]=[Forms].[Search]![Title] Or [Forms].[Search]![Title] Is Null
However when I try the logical extension:
[title]=[Forms].[Search]![Title] & "*" Or [Forms].[Search]![Title] Is Null
this doesn't work, and nor does:
[title]=([Forms].[Search]![Title] & "*") Or [Forms].[Search]![Title] Is Null
WHAT DO I DO? I'M TIRED AND I CANT THINK STRAIGHT! :eek: thanks and sorry for being so dumb!
In SQL in MS Access a '?' '*' '%' are all used as a wildcards.
I need to be able to retrieve all messsages which contain a '?' within the message. i.e. If a message contains the following characters : why?
I want to retrieve the message as a '?' is part of the message.
When I write the code :
SELECT User.User, Message.Message FROM Message INNER JOIN [User] ON Message.[Message ID]=User.[Message ID] WHERE Message Like '*?*';
Access takes the '?' as a wildcard and retrieves all the messages in the database. Is it possible to get round this and use '?' as a specific character.. not a wildcard?
I have always been wondering why this happens, and now I have a problem with it.
When I export a Table/Query from Access to Excel (be it with Right CLick -> Export...or TransferSpreadsheet) there is an apostrophe character (') appended to the front of some/each cell in Excel. You cannot see it immediately, but when you click on the cell, there is this character. WHY? Does anyone else have experience in this? :confused:
Here is what I am trying to do. I have a query with 2 fields. "Time In" & "Time Out". What I would like to happen is this. Whenever a character, let's say a "t", is entered into that field I would like the current time to populate that field. Right now we are actually typing in the time. I have the fields set up as DateTime fields currently.
Hello, Tried a search but could'nt come up with an answer.
I have a number field with an amount. The format will always change as far as the LEN is concerned. I need to remove the decimal. There will always be 2 numbers to the right of the decimal but the left will always change.
I posted an earlier question about an Access query export to Excel putting leading apostophe (') before all data. To remove them I thought I would use Find/Replace but the Apostophe is not recognised!
Is there a way (programmatically) to remove the first character of each data entry in each cell in a column?
My undertsanding is that text fields are limited to 255 characters. A friend has a databse with some "notes" type fields with data a few sentences long. Is there any way around this limit. If not, what database recommendations can anyone make for someone who needs a questionnaire component in his database?
Hi! I'm stuck and need some help. I have a list of about 1600 entries, all merchant names and i need to place an * at the beginning and end of each entry, example *Arizona Central*. Each entry has a different amount of characters...would any one know if there is a way of how I can do this easily in Access or Excel?
I have a numeric field from a SQL database that is not editable. I need to limit the number of characters displayed when I bring that field into Access forms and reports. I want it to only display the last 4 digits.
On server in my office (win server 2000) i try to link text file to database, and i just change in link text wizard language to all (default is english), and in code page (character set) i find greek. On the end of linking proces i have table with field with greek words... What is problem? I try the same on my online server (win server 2000), and when i try in link text wizard to change language to all, a have message:
The setings for this property is too long
and i cant chose greek code page. So when import text just like that, i have some simbols in table...
How to solve problem... Why one win 2000 work OK, and another not???
I was wondering if its possible to.... In my business, we test electronic components. When one fails, it gets documented as a test error, and the document is named TE-XXXX YYY where XXXX is a four digit number and YYY is a code of some sort. is it possible that in a table, When TE-XXXX YYY is entered, it only recognizes "TE-XXXX" which hyperlinks to microsoft word document in a folder that gives more information about the test error. Thanks in advance!
I've search the forums...If you can find a thread that discusses this, or can give me some advice on this topic, let me know.
Is there any built-in function that will allow me to delete any text before a certain point in a record... Or perhaps a way to use the REPLACE function to do so?
All of my records look like this (They're ticker symbols): AMZN:Amazon, Inc WMT:Wal-Mart Inc. A:Agilen Tech Inc MSFT:Microsoft Inc.
I just want the company name...Unfortunately, the ticker symbols aren't always the same length, so I can't use the left or right function.
I need to delete the colon and anything to the left of the colon. I've thought of a great use of the replace function for this purpose...I used wildcards...Too bad it didn't work!
Just The Company Name: Replace([Ticker Symbol and Name],"*" & ":","")
Hi! I have a field that has to be 20 Characters long. Most of the time data for this field is less than 20 characters, so the remaining has to be filled with spaces to make it 20. e.g. if there is a record xyz1234567, then the rest of the record should have 10 spaces like xyz1234567ssssssssss, meaning if i click on this record then the cursor should not blink after 7 but after the spaces. Hope I am making sense. Thanks for any input.
Someone used the asterisk (actually, 2 of them **) character in a field to 'mark' it for querying. Since it is a wildcard, how do I query the field to show only the records with "**" in it? What is the best way to remove them using an update query???
I have a field which looks like this - "d123456", I will have to display the field without the "d" in front, meaning I will need to show "123456" Any idea how I can do this? Thanks!
I have been beating myself up over this for the past few days and have not found a feasible workaround yet, including searching this forum repeatedly.
I have a listbox which is tied to the below query:
SELECT tbl_csraws.priority, tbl_csraws.rawname, tbl_csraws.description, tbl_csraws.sqlcode, IIf(tbl_csraws.enabled=-1,'Enabled','Disabled') AS enabled, tbl_csraws.creator, tbl_csraws.createdate FROM tbl_csraws ORDER BY IIf(tbl_csraws.enabled=-1,'Enabled','Disabled') DESC , tbl_csraws.priority
The listbox only shows the second column to the user, and upon selecting one of the options, fills in text boxes on my form for the remaining information. The description field is a memo field on the table, but when a user selects an option from the list box where the description is greater than 255 characters in length, it cuts the remaining amount off, so if they save the changes without replacing the removed characters, it will cause problems with my database. Has anyone found a workaround for this problem?
I'm new to these forums and require some help on a very strange problem. I'm also not very clued up on Access, so you can be as basic as you like.
I was asked by my employers to develop a dynamic site for a client, which uses asp and an access database to hold various content. The problem is occuring when content from a MEMO field is pulled out on the front of the site. On our UAT site, this content is snipped off after 255 characters, whereas on our development server the entire content is outputted (as it should).
The files on both environments are identical.
Can anyone offer any thoughts on this? Could it be a server setting that needs changing, or something I need to know about access?
I am setting up my own switchboard, and i have a quick jump menu that has every page on it. The pages are arranged as so:
1 1.1 1.2 1.3 2 2.1 2.2 3
When i'm setting up my code to push a person to a certain page, I want it to first check their access level (which is stored in a table in my database)
Is there a wildcard character in vb that will cover all the submenu's? (I.E. Code:If MainMenu = "1*" And Userlevel = "PublicAccess" Then MsgBox "You do not have access to this area"End If)
Instead of having to put an if statement for every submenu under 1?
I am trying to put the text "Assessment & plan " into a label.
It looks like it is going in but when displayed the text is converted to "Assessment _ plan". It seems like the & character is being used as a concatination character or some other special character.
In other situations or languages I would try a exsape character but I haven't found out what that would be in Access.