Post the full code. It is probably how you call the sub. If it works when default page is in same DIR as DB, then the DB DIR has read/write so that shouldn't be a question.
Try:
Server.MapPath("..\Admin\Inventory.mdb")
Suggestion:
If you are going to access this DB from multiple pages in varying folders, you should create a single page (connect.asp) and put your connect string there. You would then include that file (<!--#include file="../Admin/connect.asp"-->)...
Not exactly sure about what you have here, but if it is similar to what I've done, it was simply a matter of having the subform built off a query that sorts on a date descending.
I have a page that requires a user to enter a start time/end time. The user then selects a job from a dropdown list. This will automatically populate the TimePerSqFT box. The user then enters a number in the SqFT box and this would be multiplied by TimePerSqFT and a start time/end time will...
I have a batch file that says:
echo on
ftp -s:newservFTP.txt
the newservFTP.txt says:
open [ip removed for security]
loginID
password
cd c:/data/dir1/dir2
binary
put dataXP_backup.mdb
y
close
quit
My problem is that I can double click the .BAT file and it works perfectly, but if I use the...
I thought of that, but I don't know how many rows until they've stopped adding rows and I don't know how to make a simple code to account for however many rows are currently on the screen. :(
Thanks Lee!
I got it working. It now works exactly as I had planned. I just wish there was a way to change a value in any of the fields and ALL the textboxes would immediately reflect the change. As it is written, once you enter the data and add a row, you have to start all over to change a...
Hey guys...thanks a million for the help. That trick did work, but I still have one stumbling block that I thought I could figure out once this last hurdle was jumped. What I need to do now is when the user fills out the for and clicks "Add Item" the form refreshes with the all previous data...
Thanks for the response Lee, but when I make the changes, I get an error "Object Expected". Here is the code as I changed it:
=========
sub PopulateTextbox()
dim x, scX, space_comp, taskid, minper, spacetype, newtime, checktime, varnum
x = 0
varnum = 2
scX = 0...
Below is code I use to populate some text boxes. The problem is that when the user presses a button, a new row of text boxes appears and I need this code to point to them and leave the data in the previous row. For example, the way it is coded it will only work with the text box...
Below is code I use to populate some text boxes. The problem is that when the user presses a button, a new row of text boxes appears and I need this code to point to them and leave the data in the previous row. For example, the way it is coded it will only work with the text box...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.