I am working to create a database. I have excel spreadsheets that will be uploaded which have two rows of titles: the first being the parameter and the second being units. I am new to access and all I know about uploading into it is using the import>excel command. When I try to upload one of these spreadsheets, access crashes (I assume because it's trying to interpret different types of data in a single column). How do I designate this second row as units and not data values?
Related
I have dozens of CSV files that start in an S3 bucket, and then are transferred to a GCS bucket using the GCP storage transfer service. I can't do anything about the source files in S3.
Some files have 30 columns, while others will have fewer (as few as 4 or 5 columns). It's not that the columns are there, and are null. The columns simply don't exist in certain files. The total number of columns is 30. When I create an external table and set allow_jagged_rows=true, the files are loaded, but the columns are mismatched in the external table.
Is there any way to create this external table so that the columns are not mismatched? I'm assuming not, and so what is the best way to go about adding columns which aren't there? Some sort of cloud function? The difficulty is finding a simple way to determine which columns are missing, and then to simply insert a blank/null value for those.
I've been tasked with creating a database to help with my company's annual physical inventory count. We have an ERP system that contains all our part numbers, and all of our part numbers come in boxes that have a carton label containing "part number" and "quantity" which are both barcoded. We are trying to switch to a system in which we scan all the boxes into my access database vs. our previous system of physically counting and writing tags. So far everything works great, the only issue is that some bar codes get damaged or just won't scan properly for some reason, so the scanners read the barcode as a part number that doesn't exist. We are able to export a list of all part numbers from our ERP system into an excel file which i have linked to my database that we use to see which part numbers were entered that don't exist in the system. My question is, is there a way to prevent people from scanning part numbers that don't match any part number in the excel file exported from our ERP system? I'm using ms access 2003
Using a combobox with LimitToList property set to yes is a great solution. Just to let you know that with this solution it is still possible to PASTE values that are NOT on the list. If you want to guarantee that it is not possible that the field contains wrong values, the best is that you create a Relationship (with referential integrity) taking the Table field containing all valid part numbers as the master field, and the one taking the scanned value as the slave field.
I have two tables in MS Access that contain exactly three columns; a primary key, and two attachment fields which will be either MS Word or PDF documents.
These two tables contain a range of documents (A to P in the first table and Q to Z in the second table).
I need to perform a union query to get a resultant table with these three fields where the range is A to Z but I cannot, because of the multi-valued (attachment) fields that prevent a UNION query from being executed.
I cannot simply store all the data in one table to begin with because they are linked tables from another database that have to be combined in a different database.
Is there any way to have all three columns put into one table? I'm open to suggestions about changing the data type as well, but keep in mind that I could not use Hyperlinks because I am at a client terminal that only has acrobat reader and I do not have access to ACROBAT.EXE to open the PDF files (which is why I switched to attachments in the first place), and I cannot run Shell commands to find the Reader exe file either.
Edit: I get an error message saying that 'myUsername' does not have access to open 'readerName'.exe. I tried this already with Acrobat Pro and Acrobat Reader.
Good Morning,
I'm fairly new to Access VBA and I've been trying to find a solution to a problem:
I've created a form from which users upload an excel file to a database. File open prompt appears, user selects the file, temp table gets created and data gets pulled to this table. From there a set of macros populate the required fields and push the complete set to a perm table and then temp table gets deleted. Now I would like to take it a step further and try and count how many times a value has been uploaded to the table...
Lets say that the value appears in the table twice already, then if user tries to upload the same value for the third time it will be uploaded to a different table. Bear in mind that the file which users will upload may contain values that will be uploaded for the first, second, third, etc. time.
Do you have any suggestions or solutions to my problem? Is it even possible? If yes then how can I make Access to distinguish which records are being uploaded for the first, second, third, etc. time and follow appropriate paths?
I've been scouting the internet for several days now, but no one seems to have such issue.
Thank you in advance for replies.
I'm not sure I follow. You are essentially trying to prevent inserting duplicate data to a production table and if a duplicate is encountered at the record to a different table?
I know I can just convert to number in Excel, but I will be handing this database off to a few users with no Access experience and limited Excel experience--I want as little data manipulation as necessary. Access use has been reduced to button-clicking and report viewing/printing. Among these buttons is a data refresh macro--the fewer the steps in preparing the data, the lower the chance of screwing something up.
I'm adjusting a .mdb Access table to include information previously excluded from an Excel import. A few of these columns are numbers stored as text in Excel, while the columns in Access have datatype set to "Number". When I import, will Access treat these as a number or a string?
Thanks!
It does indeed appear to store these values as numbers--it sorts appropriately and I get a value for average.
Update: I just tried to import an Excel file (with numbers stored as text) into a new table, manually changed the data type for this field to Double during the import process, and Access did not import any of the numbers. I deleted all records, saved the table, imported again (this time into the already existing table) and it went through successfully.
Worth noting that you can import numbers stored as text to an existing table, but not into a new table.