I am new to Microsoft Access but not databases.
I am attempting to use Access as a data model in multiple Excel spreadsheets.
I already have some hardcoded data records in my spreadsheets, and I want to port them over to the Access table.
So I basically have the data I want to copy and paste over as a multiline (\r) text file copied to the clipboard. The data looks like this:
Stable
Interactive Media & Services
Wireless Telecommunication Services
Internet & Direct Marketing Retail
Specialty Retail
Household Products
Personal Products
Oil, Gas & Consumable Fuels
Banks
Capital Markets
Consumer Finance
Health Care Providers & Services
Biotechnology
Aerospace & Defense
Air Freight & Logistics
IT Services
Software
REIT
Electric Utilities
Independent Power and Renewable Electricity
I have the table open, and on the (New) line, I click Paste Append. This adds the 20 records but the Title field is left blank...
I've checked and the data types for the cell are text. I'm not sure how to resolve this.
You need to select the Title field, not the row. Left click on the column header then Ctrl+V or right click Paste.
If you want to paste into table that already has records, then highlight blank 'cell' under Title column. This is a little tricky. Point cursor at cell edge until it changes to a plus then left click to select and cell fills with solid blue color. Now do a Ctrl+V or right click Paste.
Alternatively to both of the above, move Title column in front of ID. Now ribbon Paste Append should work.
I tested this by copying your list from the question then pasting into my table.
Related
I have a list of email subject lines with job roles on the left side, need to filter out roles like Assistant Manager, Manager, Civil Engineer, Project Manager to get the result.
Certain cells don't have the job role mentioned so to be left blank
The rows on the sheet need to remain intact so data can be analysed.
i tried using REGEXMATCH but it will not work for row5
is there a way to have a single formula, which includes all keywords for the whole list.
REGEXMATCH(B3, "assistant|manager")
I'm doing this on Google sheet and have shared the screenshot and the GoogleSheet file Link for reference.
I have made a copy of your sample data on this Support Sheet, that will exist in perpetuity.
On a tab called MK.Lookups, I built a table to use for your lookup words and returns. Then on the tab called MK.Idea, I placed this formula in cell B3 and dragged it down.
=IFERROR(INDEX(SPLIT(TEXTJOIN("|",TRUE,IF(REGEXMATCH(UPPER(B3),SUBSTITUTE(UPPER(MK.Lookups!C$2:C$20),", ","|")),MK.Lookups!B$2:B$20,)),"|"),1))
I also placed this formula in cell C1, which is an arrayformula that will populate for every row and doesn't need to be copied down the column.
={"Result";ARRAYFORMULA(IFERROR(INDEX(SPLIT(TRANSPOSE(TRIM(QUERY(IF(REGEXMATCH(TRANSPOSE(UPPER(A2:A)),SUBSTITUTE(UPPER(MK.Lookups!C$2:C$20),", ","|")),MK.Lookups!B$2:B$20&CHAR(10),),,9^9))),CHAR(10)),,1)))}
I am a 10 years old boy. I created an app / game with google sheets that I shared with my friends: it is a kind of "virtual city", with shops (with related product catalogs and prices, to be purchased with your own virtual budget) ... but I'm going crazy trying to find the solution to this problem.
I did such a thing:
This example refers to Macdonald's. I put in the first column (players) the name of the players, in the second column (products) a validation of the data in which I insert all the macdonald's products, in the third (price) you can find the unit price of the product, in the fourth (quantity) one cell without formulas where to enter the quantity, and in the fifth (total) I put the formula: quantity x price. My problem is the BUTTON. To the "complete order" button I have assigned a macro that COPY and PASTE under all the informations of the order (for example Riccardo, salad, 5.00 € ...) and once copied it cancels them to consent to order other products.
So:
the macro I created (which script is:
function macro_vera(){
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('E12').activate();
spreadsheet.getRange('E5:I5').copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_VALUES,false);
spreadsheet.getRange('G12').activate();
spreadsheet.getActiveRangeList().setNumberFormat('[$€-2]\\#,##0.00');
spreadsheet.getRange('I12').activate();
spreadsheet.getActiveRangeList().setNumberFormat('[$€-2]\\#,##0.00');
spreadsheet.getRange('F5').activate();
spreadsheet.getActiveRangeList().clear({contentsOnly:
true,skipFilteredRows:
true});
spreadsheet.getRange('H5').activate();
spreadsheet.getActiveRangeList().clear
({contentsOnly:true,skipFilteredRows:
true});
};
) HAS COPIED the order informations (salad ...) and PASTE it below.
But if we intend to buy, for example, three big macs that cost 10.00 each, then the total is 30.00 €, the previous informations (salad ...), when the button is pressed, will be replaced (overwritten without leaving a trace) and will be exchanged with the new ones we just added (big mac ...). I understood that the only solution is to edit the button macro script.
Can anyone tell me the commands and syntax I have to use to solve the problem?
How can I do?
thanks
I have created text templates with a few placeholders for keywords. The keywords are in separated cells and there are a lot of them. The idea is, that I select a text template with a dropdown menue on a different sheet and it fills the selected text with all the keywords automatically. I get my template via VLOOKUP and using SUBSTITUTE and ROW to replace the row numbers to get the right keywords from the same row. So far so good.
What I dont't get is the final evaluation. The output is always a formula that is just a text and not a functional formula.
I know that there is no EVAL function for Google spreadsheets like in Excel. So I need a workaround.
Tried so many things, like INDIRECT functions or some scripts from the internet for a self made EVAL function, but still couldn't get a working thing. I'm going crazy.
//MY TEMPLATES:
A B
Version No.1 ""&CXXXXX&" & "&DXXXXX&" presents for your "&EXXXXX&"."
Version No.2 "Perfect for "&CXXXXX&" & "&DXXXXX&". Do some "&EXXXXX&"!"
Version No.3 "Cool "&CXXXXX&" & "&DXXXXX&"."
//MY KEYWORDS:
C D E
Business Money Motivation
Fitness Bodybuilding Sports
Music Songs Sounds
//MY CODE FOR THE EXPECTED OUTPUT:
=CONCATENATE("=";SUBSTITUTE(VLOOKUP($A3;$A$16:$B$18;2;0);"XXXXX";ROW(B3)))
(Templates are placed at A16:B18)
//WHAT I ACTUALLY GET:
Dropdown Output
Version No.2 ="Perfect for "&C3&" & "&D3&". Do some "&E3&"!"
Version No.3 ="Cool "&C4&" & "&D4&"."
Version No.1 =""&C5&" & "&D5&" presents for your "&E5&"."
//WHAT I NEED:
Dropdown Output
Version No.2 Perfect for Business & Money. Do some Motivation!
Version No.3 Cool Fitness & Bodybuilding.
Version No.1 Music & Songs presents for your Sounds.
The output has to be evaluated but I didn't figured out how I can do that in Google Spreadsheets...
Here you can find the example file:
https://docs.google.com/spreadsheets/d/11vvkhgsbPqDz5sPCkPzNcGNvlHEBhRE72O8pE_keDs0/edit?usp=sharing
Use Google Apps Script or the Google Sheets API to add your formula to a cell.
If you go for using Google Apps Script, use setFormula or setFormulaR1C1 to add a single formula.
Perhaps you should start by reading https://developers.google.com/apps-script/guides/sheets
I have a macro in place that imports and parses data from a text file already. I need it now to look for a range of data that is always the same in every text file. The file has a lot of text in it but somewhere in the middle of the file it has the data below. I need it to copy and paste this data into the tables from the word "acct123456789" until "the customer service team". I am using MS Access. Maybe i would like to have a search box, have the user enter the account number and have it copy from the account number until the "the customer service team?
I have 10 fields which are named "f1,f2,f3,f4,f5,f6,f7,f8,f9,f10" in table "statement-find"
example:
Search Box: USER INPUT (ex. 123456789)
- Information found in the table called "statement-find".
- Macro/VBA copies information from acct 123456789 to the customer service
team
- macro/vba pastes that range into a table called "statement"
Acct 123456789
Hello,
Thank you for your payment. Please view your receipt at www.test.com
Thank You,
The customer service team
I have a user that is dealing with an Access Database continuous forms page where they can perform a bunch of filtering and data entry.
Occasionally the user wants to be able to select a few rows from this form and paste them directly into an email. Outlook formats the data into a table pretty nicely on its own but the problem we're having is that dropdown controls from the header are included in the pasted data as you can see below:
Employee_Absences
drpEmployee drpOrgDescrip lstTimeCode txtToDate txtFromDate chkShowExcused DESCR AbsenceDate Hours Excused_Hours Time Code employee_lookup.ORG_DESCRIP ImportedDate
6/2/2009 1/1/2009 0 Bob 1/4/2009 4 0 VAC Medical 5/7/2009 4:51:31 PM
6/2/2009 1/1/2009 0 Bill 1/4/2009 6 0 VAC Medical 5/7/2009 4:51:31 PM
6/2/2009 1/1/2009 0 Betty 1/4/2009 4 0 VAC Medical 5/7/2009 4:51:31 PM
6/2/2009 1/1/2009 0 Beth 1/5/2009 2 0 VAC Gamers 5/7/2009 4:51:31 PM
The user doesn't want to bother with deleting and reordering columns every time they want to include a couple rows in an email and it would be fairly unfriendly to force them into a separate report or datasheet just to get two or three rows. I've tried messing with the order of the parameters in the query that is populating the form but this doesn't help at all.
Is there some sort of Copy-to-Clipboard event that I can hook into and do some magic to the data rows? Any other suggestions?
This is surely a layout problem on the form. Selecting rows of a continuous form should not copy the data from controls in the form header.
Perhaps I've misunderstood the problem?
It certainly is possible to put data on the clipboard. See this page:
Copy variables/control contents to memory
But for pasting into an email, you'd need plain text and the email would need to be displayed in a fixed-width font. Unless you want to write HTML, there is no easy way to format a table that will paste into a non-plain-text email. If they are sending in HTML (which they oughtn't be), an HTML table will work. If they are using RTF (and they oughtn't be), I don't know what happens if you paste HTML.
Try to figure out why the form header control is getting copied. My bet is that the user is not defining the initial selection correctly, and you teach them to do that (or engineer the subform to prevent it), you won't have to program anything -- which is the whole beauty of Access.
On another note, I don't believe in allowing edits in continuous or datasheet forms because if you need dynamic combo boxes and the like for data validation, it can lead to all sorts of problems. Instead, I use continuous and datasheet forms as lists and have a detail subform bound to the PK of the continuous/datasheet form so that when you select a record in the continuous/datasheet form, the data will appear in the editable detail subform.
I have just had too many problems with editing continuous and datasheet forms and that's why I've done that. The only exception I make for that is in an invoice-type form, where there is no good way to do it otherwise.